Reflection .NET API
Attachmate.Reflection.UserControl.OpenSystems Assembly / Attachmate.Reflection.UserControl.OpenSystems 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


TerminalInitializedEventHandler Delegate
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)

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
Check for any errors that may have occurred during termial initialization
private void openSystemsTerminalControl1_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