Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > WINDOWS PROGRAMMING (NNTP) > winsock connection...refreshing data
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 4th August 18:11
External User
 
Posts: 1
Default winsock connection...refreshing data



the problem is that if I refresh the data (calling again the same
routine), after unplugging the cable of my local pc (where the app is
running), the link status still shows to be up. Am I missing something
?

Thanks and Regards

Sub CheckConnection Winsock1.Connect "110.100.1.1", 1400
If Err <> 0 Then
shpLink.BackColor = vbRed
Else
shpLink.BackColor = vbGreen
End If
Err.Clear
On Error GoTo 0
Winsock1.Close
End Sub
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666