'Declaration
Public Overloads Sub InitInstance()
'Usage
Dim instance As OpenSystemsTerminalControl instance.InitInstance()
public void InitInstance()
'Declaration
Public Overloads Sub InitInstance()
'Usage
Dim instance As OpenSystemsTerminalControl instance.InitInstance()
public void InitInstance()
The InitInstance call is required to initialize the terminal user control prior to use.
Use the TerminalInitializedEventHandler to check for any errors that may have occurred during terminal initialization.
private void Form1_Load(object sender, EventArgs e) { openSystemsTerminalControl1.InitInstance(); } 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; } ITerminal Terminal = openSystemsTerminalControl1.Terminal; ((IConnectingSettingsBestNetwork)Terminal.ConnectionSettings).HostAddress = "yourHostName"; Terminal.Connect(); }