I need a event to detect Internet connect/disconnect

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

Leave a Comment