Click or drag to resize

BasicNoUIObjInEvent Property

Gets the in event status.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public bool InEvent { get; }

Property Value

Boolean
The in event status.

Implements

IBasicNoUIInEvent
Remarks

The InEvent property helps insure that the container is not destroyed while executing from a WinWrap Basic event. Don't destroy the container if InEvent is True.

Setting Description
True Executing application code from inside a WinWrap Basic event.
False Not in any WinWrap Basic event.
Example
Provide a delayed form close to assist in an orderly shutdown:
private void timer1_Tick(object sender, System.EventArgs e)
{
    // poll the idectl until InEvent returns False
    // only then is it okay to close the form containing the idectl
    if (!basicIdeCtl1.InEvent)
    {
        timer1.Enabled = false;
        Close();
    }
}
See Also