| NetworkAvailabilityChanged Event (My.Application) | |
Location My.Application.NetworkAvailabilityChanged Syntax Public Sub Me_NetworkAvailabilityChanged(ByVal sender As Object, _ ByVal e As NetworkAvailableEventArgs) _ Handles Me.NetworkAvailabilityChanged End Sub sender (required; Object) The control or object that raised the event e (required; NetworkAvailableEventArgs) An event parameter that contains information about the network, using the Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs class. Description The NetworkAvailabilityChanged event occurs whenever the network availability changes. Public Members The e argument for this event, as an instance of the NetworkAvailableEventArgs class, includes the following notable public members. Member | Description |
|---|
IsNetworkAvailable | Property. A Boolean that indicates whether the new state of the network is available (TRue) or not (False). | Usage at a Glance This event is only available in Windows Forms applications. A similar event, accessible to all application types, exists in the My.Computer.Network object. See the NetworkAvailabilityChangedEvent (My.Computer.Network) entry in this chapter for information on that event. This event handler can be found in the ApplicationEvents.vb source code file for your project. This file is normally hidden but can be viewed by toggling the Show All Files button in the Solution Explorer window in Visual Studio. This event does not occur on Windows 95 and Windows 98 systems. Related Framework Entries See Also Application Object, NetworkAvailabilityChanged Event (My.Computer.Network) |