Posted: Mon Dec 01, 2008 2:24 pm Post subject: Need some help with VB 2008.
I'm trying open telnet in VB 2008 and as soon as it opens I want it to connect to TextBox1.Text (The IP) and TextBox3.Text (The port)
This is the code I am currently using:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Dim telnet As Process = New Process
telnet.StartInfo.Filename= "telnet.exe"
telnet.StartInfo.Arguments = TextBox1.Text
telnet.StartInfo.Windowstyle=ProcessWindowStyle.Normal
telnet.StartInfo.CreateNoWindow = True
telnet.Start()
End Sub
Can someone tell me how I can make TextBox3.Text the port, I already made TextBox1.Text the IP. If there is any other more simple way in doing this please state this, thanks alot.
Last edited by cildor666 on Mon Dec 01, 2008 2:27 pm; edited 2 times in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum