Private Sub Command4_Click(ByVal eventSender As System.Object, ByVal eventArgs
As System.EventArgs) Handles Command4.Click
'End the program.
End
End Sub
Private Sub Command5_Click(ByVal eventSender As System.Object, ByVal eventArgs
As System.EventArgs) Handles Command5.Click
'Check the connection state.
If State Then
MsgBox("Connected")
Else
MsgBox("Closed")
End If
End Sub
End Class