Reflection .NET API
Attachmate.Reflection.UserControl.OpenSystemsGraphics Assembly / Attachmate.Reflection.UserControl.OpenSystemsGraphics Namespace / TerminalInitializedEventHandler Delegate
The source of the event.
An AsyncCompletedEventArgs type that contains an Error property that indicates which error (if any) occurred during the InitInstance call.
ExampleExample


In This Topic
    TerminalInitializedEventHandler Delegate
    In This Topic
    Event handler delegate for session started event.
    Syntax
    'Declaration
     
    
    Public Delegate Sub TerminalInitializedEventHandler( _
       ByVal sender As Object, _
       ByVal e As AsyncCompletedEventArgs _
    ) 
    'Usage
     
    
    Dim instance As New TerminalInitializedEventHandler(AddressOf HandlerMethod)
    public delegate void TerminalInitializedEventHandler( 
       object sender,
       AsyncCompletedEventArgs e
    )

    Parameters

    sender
    The source of the event.
    e
    An AsyncCompletedEventArgs type that contains an Error property that indicates which error (if any) occurred during the InitInstance call.
    Remarks

    Use this event handler to check for any errors that may have occurred during terminal initialization.

    Example
    private void openSystemsGraphicsTerminalControl1_TerminalInitializedEvent(object sender, AsyncCompletedEventArgs e)
    {
        // Check if error occurred during the terminal initialization
        if (e.Error != null)
        {
            MessageBox.Show("Error during terminal initialization step: " + e.Error); return;
        }
     
    }
    See Also