We are developing a .NET application where one of the requirements is to monitor whether the system is connected to the internet or not.
We were able to get a .NET
You can use the NetworkChange class, with the NetworkAvailabilityChanged event:
NetworkChange.NetworkAvailabilityChanged += myNetworkAvailabilityChangeHandler;
Since it's a system event, make sure you delete the event when you're finished, see this post here: You need to be careful about using event handler for NetworkChange