Hello Goldwind,
It's a bit ambiguous to check if there is an internet connection or not,
except pinging some server.
All internet resources are like intranet one, it could be or could not be
online sometimes.
What you can be really sure it's if network connection exists.
G> From a desktop application, i want to check if an internet connection
G> exist.
G> Many articles use the win api "InternetGetConnectedState", but it is
G> no sure
G> thing.
G> I can check it by calling a site an wait for an exception but it will
G> cost
G> me time (till the exception will occure)
G> By using .NET object and methods, how can i check it?
G>
G> Thanks
G>
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche