How To: (Almost) Everything In WMI via C# - Part 3: Hardware[
^] allows you to detect whether your computer is connected to a network - remember the computer may be connected to a network without being able to access the internet.
The classes
Win32_NetworkAdapter
Win32_NetworkAdapterConfiguration
provides you with enough information to detect network configuration - useful when you try to use
NetworkInterface[
^] -
NetworkInterface.GetIsNetworkAvailable[
^] to detect if there is an available network.
When it isn't it's quite often more useful to display the information you are able to detect about the computers configuration to the user, as it will probably make your support calls a lot easier to handle.
This google search
invokerequired/invoke pattern[
^] provides a number of links explaining why you need to use
Control.Invoke[
^] when you want to interact with the gui thread, as SAKryukov tried to explain in his answer to your previous question.
Regards
Espen Harlinn