Software Development Network>> Visual C#>> How can I check out whether the system is connected to the internet?
The First is to use P/invoke and calling WinAPI InternetGetConnectedState
The Seconed .Net 2 have NetworkChange class it hase two events NetworkAvailabilityChanged and NetworkAddressChanged
for an example of this method look at
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=118246&SiteID=1
The Third to use System management objects for an example of this method look at
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=559421&SiteID=1
This question has been asked a couple of times previously and I'd suggest taking a look at a couple of those threads:
How can I check out whether the system is connected to the internet?
Prince of Dhump
The First is to use P/invoke and calling WinAPI InternetGetConnectedState
The Seconed .Net 2 have NetworkChange class it hase two events NetworkAvailabilityChanged and NetworkAddressChanged
for an example of this method look at
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=118246&SiteID=1
The Third to use System management objects for an example of this method look at
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=559421&SiteID=1
DavidFG
This question has been asked a couple of times previously and I'd suggest taking a look at a couple of those threads: