|
-
Dec 22nd, 2008, 03:42 PM
#1
Thread Starter
Lively Member
Winsock questions.
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 ?
-
Dec 22nd, 2008, 03:46 PM
#2
Re: Winsock questions.
See what you get in the Error event when trying to connect to IP that doesn't exist.
-
Dec 22nd, 2008, 04:35 PM
#3
Re: Winsock questions.
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
-
Dec 22nd, 2008, 06:35 PM
#4
Thread Starter
Lively Member
Re: Winsock questions.
Thank you so much, jmsrickland!
So easy solution!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|