UtilNetworkNetworkStatusChanged Event
Occurs when the state of Internet connectivity changes.
This is a code example.
No code example is currently available or this language may not be supported.
Public Class Form1
Private Sub Form1_Shown() Handles MyBase.Load
AddHandler NetworkStatusChanged, AddressOf DoNetworkStatusChanged
End Sub
Private Sub DoNetworkStatusChanged(ByVal sender As Object, e As NetworkStatusChangedEventArgs)
If e.IsAvailable Then
Console.WriteLine("Network is available.")
Else
Console.WriteLine("Network is not available.")
End If
End Sub
End Class
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.