Presentation is loading. Please wait.

Presentation is loading. Please wait.

REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection.

Similar presentations


Presentation on theme: "REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection."— Presentation transcript:

1

2

3

4

5

6

7 REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection here End Sub REM set up the system to call that function Public Sub New() AddHandler NetworkInformation. _ NetworkChange.NetworkAddressChanged, _ AddressOf OnNetworkChange End Sub

8 private void OnNetworkChange (Object sender, EventArgs Args) { // Put network detection here } public MainPage() { NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler (OnNetworkChange); }

9

10

11

12

13

14

15

16 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17

18

19

20

21

22

23

24


Download ppt "REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection."

Similar presentations


Ads by Google