Solved

Telnet in Visual Basic

Posted on 1998-09-07
2
1,674 Views
Last Modified: 2013-11-25
I need to know how to connect to a telnet site in VB.

I will need to be able to see the output of it, and be able to manipulate, and also input info to the telnet server.... basiclly I'm making an enhansed telnet client just for a specific server.

I need to be able to insert the IP address and port number of it.

I use VB1 and VB5, so whichever one you use, you can tell me about (although I don't think VB1 has the capabilities)

Thanks!

If it requires a special file (like an OCX), please tell me where I can get it then.
0
Comment
Question by:eversoslightly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
kacklehorn earned 20 total points
ID: 1433424
Put a msWinsock control..(found in VB5) on a form with a large textbox(text1) and three small textboxes IPaddress(text2) port#(text3) Commands(text4). Two command buttons:

Option Explicit

Private Sub Command1_Click()
    Winsock1.Connect Text2.Text, Text3.Text
End Sub

Private Sub Command2_Click()
    Winsock1.SendData Text4.Text
End Sub

Private Sub Form_Load()

End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim buffer As String
Winsock1.GetData buffer, vbString
Text1.Text = buffer
End Sub


Thats it..Enjoy
0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1433425
Thanks!  Worked like a charm :)

Ever-So
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month5 days, 17 hours left to enroll

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question