Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharing the winsock control among forms

Status
Not open for further replies.

tehCoosh

Technical User
Aug 29, 2005
9
US
I want to be able to have the winsock control "shared" in all forms. So lets say I connect to a host in 1 form, but then I want to send a packet in another form, without having use a different winsock control then connect again.

How would I do this?
 
Haven't tried it yet, but...

Assume frmMain is the form with the winsock control. and the code below is in a different form.

Code:
frmMain.winsock1.sendata "data"

 
You would still have to initiallize the control as normal, unless it was already done.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top