Winsock Control using VB.Net ?

k9friend

New member
Joined
Mar 7, 2005
Messages
1
Programming Experience
5-10
I am trying to use the Winsock control with VB.Net. I am able to use the control but I can't get to the properties and methods that were available under VB 6.0.

For example the Winsock.Connect ("192.168.0.45" "2000") function used to return a long when the connection was completed, now nothing is returned.

I can't even determine if my connection has opened ! Am I missing something, am I not referencing the control correctly.

When I attempt to determine the current state of the control ( Open , Listening , Connected ) I can't find this property.

VB.Net is a bit frustrating. I love the GUI but some things seem like a step backwards.
 

Air Force Wolf

New member
Joined
Nov 9, 2005
Messages
2
Programming Experience
1-3
It returns a bit string. Simply convert into a string, like this.

Dim objData As Object
Dim strData As String
Dim ndx As Integer


For ndx = 0 To UBound(objData)
strData = strData + Chr(objData(ndx))
Next



 
Top Bottom