Hi, in my program im using the winsock control.
If the program don't find any connection then i want a msgbox popping up and says: "There's no server running with either that IP / Port "
Any suggestions ?
Printable View
Hi, in my program im using the winsock control.
If the program don't find any connection then i want a msgbox popping up and says: "There's no server running with either that IP / Port "
Any suggestions ?
See what you get in the Error event when trying to connect to IP that doesn't exist.
Code:Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Winsock1.Close
MsgBox "An Error Has Occured: Error Number = " & Number & ", Reason = " & Description
End Sub
Thank you so much, jmsrickland!
So easy solution!:)