Internet Connection Detect....
anyone know how to detect if an Internet Connection is still present or has been dropped? Other than seeing if a webpage loads.
i want to be able to insert a code into the Form Load and have it monitor the net connection and pause my app if connection is lost.
Here's another from AllAPI
VB Code:
Private Declare Function InetIsOffline Lib "url.dll" (ByVal dwFlags As Long) As Long
Private Sub Form_Load()
'KPD-Team 2001
'URL: [url]http://www.allapi.net/[/url]
'InetIsOffline returns 0 if you're connected
MsgBox "Are you connected to the internet? " + CStr(CBool(Not (InetIsOffline(0)))), vbInformation
End Sub