Google is the best choice.
I
i Posei
@i Posei
Posts
-
Latitude and Longitude -
Internet Connection!Use a simple API function InternetGetConnectedState, to return a boolean variable. using System ; using System.Runtime ; using System.Runtime.InteropServices ; public class InternetCS { //Creating the extern function... [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ; //Creating a function that uses the API function... public static bool IsConnectedToInternet( ) { int Desc ; return InternetGetConnectedState( out Desc, 0 ) ; } } blank