[Message Deleted]
-
Take internet explorer and type url.then press enter key. Deepthi Wilson
-
Take internet explorer and type url.then press enter key. Deepthi Wilson
-
-
using System ; using System.Runtime ; using System.Runtime.InteropServices ; public class InternetCS { //Creating the extern function... [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( int out Description, int ReservedValue ) ; //Creating a function that uses the API function... public static bool IsConnectedToInternet( ) { int Desc ; return InternetGetConnectedState( out Desc, 0 ) ; } }
-
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 ) ; } }
-
This is a lot easier in .NET 2.0. Check out the new System.Net.NetworkInformation namespace. The NetworkInterface class contains a property called OperationalStatus that contains an Enumeration value indicating the current status. The namespace also contains a Ping class that you can use to check the availability of a specific address and a NetworkAvailabilityChangedEventHandler Delegate that you can hook up to methods that you want called when network availability changes. This should be a lot more fun than typing a URL into your browser. ;P
-
This is a lot easier in .NET 2.0. Check out the new System.Net.NetworkInformation namespace. The NetworkInterface class contains a property called OperationalStatus that contains an Enumeration value indicating the current status. The namespace also contains a Ping class that you can use to check the availability of a specific address and a NetworkAvailabilityChangedEventHandler Delegate that you can hook up to methods that you want called when network availability changes. This should be a lot more fun than typing a URL into your browser. ;P