C# 2008 SP1
I am using this code to connect to our client website. This is for a softphone application. Before the user makes a call, the softphone has to test if th
A better option is to add reference to the Microsoft.VisualBasic and add a using statement Microsoft.VisualBasic.Device then you can use the following line of code to check for connection to any network at all.
public static bool isConnectedToNetwork {
get {
Network network = new Network();
return network.IsAvailable;
}
}