telnet using VB

How do i telnet to a unix box using VB code ?
I also need to display the command prompt window on my VB form .
Please help .
sars
[141 byte] By [sars] at [2007-12-24]
# 1

Telnet is a well-defined protocol (RFC854) (you can check the specs here: http://www.freesoft.org/CIE/RFC/854/index.htm). You will need to implement this, probably using the TCPClient class, since Telnet operates traditionally over port 23 in TCP mode.

It is difficult to "parent" a command prompt window into your VB form; it is much easier to create a text box yourself that can handle printing and input. Be careful though, it can be tricky to implement the telnet ANSI commands with a text box. If you want to "parent" a command prompt, I suggest you do something that most of the UI console apps do; they start the command prompt, hide it, and "screen scrape" it so that they can produce its results in a GUI window (and thus apply more modern GUI styles, such as transparency, etc).

Console (http://sourceforge.net/projects/console) is one such open source project. There are others if you search for it.

TimothyNgMSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...