Checking Internet Connection
This is a nice and clean code to check if your smart client is connected to the internet (this is the same code IE is using) :
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState(out int connectionDescription, int reservedValue);
public bool IsConnected()
{
int connectionDescription = 0;
return InternetGetConnectedState(out connectionDescription, 0);
}
UPDATE: