I will look into your solutions and get back to you.
Thanks for the help.
Well I am not having much luck with your code to test what needs to be run.
I have 2 Private Sub's that should run when a button is pressed.
They are the following:
Private Sub Winsock2_Connect() and....
Private Sub Winsock2_DataArrival(ByVal bytesTotal As Long)
I have tried it as:
private Winsock2_Connect as boolean
private Winsock2_DataArrival as boolean
and as
private Winsock2_Connect() as boolean
private Winsock2_DataArrival(ByVal bytesTotal As Long) as boolean
I have tried to set them up as you described in your first reply. I get an error of 'ambiguous name detected.'
~~Also, the winsock.state should be 'closed' as per the code telling it to close. I dont know why I sould need to use that bit. Maybe you could explain a little more clearly on what I would do to use it effectively. What I think you want me to do is:
1: Create an integer (Dim State As Integer)
2: Then print the state of the Winsock (Winsock2.State = State)
Print State (or whatever)
Other than that im not sure why you want me to try that.
Thank you for the help as always.