'Usage
Dim instance As IbmTerminalControl Dim hostType As HostType instance.InitInstance(hostType)
Parameters
- hostType
- Host type for the new session
'Usage
Dim instance As IbmTerminalControl Dim hostType As HostType instance.InitInstance(hostType)
The InitInstance call is required to initialize the terminal user control with sufficient information to render a terminal user interface.
Use the TerminalInitializedEventHandler to check for any errors that may have occurred during terminal initialization.
private void Form1_Load(object sender, EventArgs e) { ibmTerminalControl1.InitInstance(Attachmate.Reflection.UserControl.IbmHosts.HostType.IBM3270); } private void ibmTerminalControl1_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; } ibmTerminalControl1.IbmTerminal.HostAddress = "yourHostAddress"; ibmTerminalControl1.IbmTerminal.Port = 23; ibmTerminalControl1.IbmTerminal.Connect(); }