Telnet Object : TermType Property |
Visual Basic |
---|
Public Property TermType As String |
Many hosts send a terminal type request shortly after a Telnet connection is established. By setting this property at design time or before connecting, the control responds with this value when the AutoOption property is True. If the host refuses to negotiate the terminal type, this property returns "".
Setting this property after the initial option negotiation takes place may not affect the host in any way, depending on the host's operating system.
If the server does not support this option, this property returns "" after it has been refused. Likewise, to refuse this option, set this property to "".
Private Sub Command1_Click() On Error GoTo OnError ' use intrinsic error handling Telnet1.TermType = "vt320" Telnet1.Connect "myhost" ' VT320 terminal type is requested Exit Sub OnError: ' Any error jumps here Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description End Sub