Internet connection
Hi!
How may I check if the system is connected to the internet, through a VB .NET Windows Application?
Regards!
M.Sadegh Samiei
Hi!
How may I check if the system is connected to the internet, through a VB .NET Windows Application?
Regards!
M.Sadegh Samiei
You can use the API function InternetCheckConnection to achieve this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetcheckconnection.asp
Sample Code below: Regards,
http://www.mentalis.org/apilist/7BA2919B3CC7864AD0BE3278CCFA56E7.html
Vikram
I don't like linking to dll's as this causes no end of deloyment headaches + security exception issues.
This works in c#
using System.Net; HttpWebRequest request = (HttpWebRequest)WebRequest.Create( url );
It's part of the framework and requires no horrible external dll calls.