I'm looking for code that would help me check the user's internet connection. For example, when Button1 is clicked a MsgBox appears that displays either "Connected" or "Disconnected" based on whether they are connected to the internet or not.
Sonic42 0 Newbie Poster
Recommended Answers
Jump to PostHere.. try this..
Private Declare Function InternetGetConnectedStateEx Lib "wininet.dll" (ByRef lpdwFlags As Long, ByVal lpszConnectionName As String, ByVal dwNameLen As Integer, ByVal dwReserved As Long) As Long Dim sConnType As String * 255 Sub CheckNetCon() Dim Ret As Long Ret = InternetGetConnectedStateEx(Ret, sConnType, 254, 0) If Ret …
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.