NetworkAvailabilityChanged Event (My.Application)


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

  • Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase Class

  • Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs Class

See Also

Application Object, NetworkAvailabilityChanged Event (My.Computer.Network)




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net