Main Programming Tasks |
Top Previous Next |
For using the Terminal Emulator components the main tasks are:
VB.NET: Private Sub Form_Load(sender As System.Object, eventArgs As System.EventArgs) tnDisplay.Telnet = tn3270 tnStatusBar.Telnet = tn3270 ... End Sub
C#: private void Form_Load(object sender, System.EventArgs e) { tnDisplay.Telnet = tn3270; tnStatusBar.Telnet = tn3270; ... }
VB.NET: tnStatusBar.Display = tnDisplay
C#: tnStatusBar.Display = tnDisplay;
VB.NET: tnDisplay.Keyboard = tnKeyboard
C#: tnDisplay.Keyboard = tnKeyboard;
VB.NET: Private Sub Button1_Click(sender As System.Object, eventArgs As System.EventArgs) 'In the edit box you have to type the DNS name or 'TCP/IP address of the mainframe you want to connect to. tn3270.Host = Edit1.Text tn3270.Connect() ... End Sub
C#: private void Button1_Click(object sender, System.EventArgs e) { // In the edit box you have to type the DNS name or // TCP/IP address of the mainframe you want to connect to. tn3270.Host = Edit1.Text; tn3270.Connect(); ... }
Now you have a complete terminal emulator.
|