Example 2 (UserGuide.pdf)


I have a problem with example nr.2 (PC SDK User Guide.pdf pagenr.145) "Add NetworkWatcher"

How do I do this?

Add the event handlers for Found and Lost controllers, as well as the setting of the EnableRaisingEvents property to True.
With Best Regards,


  • In the Load handler for the window application add the event handlers for Found and Lost delegates on the NetworkWatcher instance:

    Me.ANetworkWatcher = New NetworkWatcher(Me.Scan.Controllers)
    AddHandler Me.ANetworkWatcher.Found, AddressOf Me.NetworkAddController
    AddHandler Me.ANetworkWatcher.Lost, AddressOf Me.NetworkRemoveController
    Me.ANetworkWatcher.EnableRaisingEvents = True


    Urban Vikblom