I tried that... but this is what I came up with
Although I do not have a form I added the component as requested. (I don't understand why, BUT... you da man so I'll listen :) )
In the General/Declarations I added:
Dim WithEvents obj as WinSock
then when I am about to set it up to listen I am setting the object via:
Set obj = New Winsock.
** note that after "New" Winsock does NOT appear in the drop down.
During compile I get this error:
==Compile Error==
Invalid use of NEW keyword.
this appears and VB highlighted "New Winsock"
hmmmm... I do appreciate the go tho :D
OK... So far so good... now...
... one more question... I can compile with no problems and everything seems to be working fine... BUT....
How would I wait for a response from the server. I have set the localport and set to listen but with out any events where can I look for the "DataArrival" event?
Should I:
Dim WithEvents obj as Winsock
Like Cander suggested?
ne comments welcome....
Shadow :confused: