using System;
using System.Runtime;
using System.Runtime.InteropServices;
public static class InternetConnectionStatus
{
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState(out int Description, int Reserved);
public static bool Connected()
{
int Descript;
return InternetGetConnectedState(out Descript, 0);
}
}
I studied Software Engineering at Milwaukee School of Engineering for 2 years before switching to Management of Information Systems for a more business oriented approach. I've been developing software since the age of 14, and have waded through languages such as QBasic, TrueBasic, C, C++, Java, VB6, VB.NET, C#, etc. I've been developing professionally since 2002 in .NET.