Imports System.
IO
Imports [Link]
Imports [Link]
Imports [Link]
Public Class FormMonitoring
Private Sub FormMonitoring_FormClosing(sender As Object, e As
[Link]) Handles [Link]
[Link]()
End Sub
Private Sub FormMonitoring_Load(ByVal sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
[Link] = False
[Link] = False
[Link] = 2
[Link]()
[Link]()
End Sub
Private Sub ButtonScanPort_Click(ByVal sender As [Link], ByVal e As
[Link])
[Link]()
Dim myPort As Array
Dim i As Integer
myPort = [Link]()
[Link](myPort)
i = [Link]
i = i - i
Try
[Link] = i
[Link] = True
Catch ex As Exception
MsgBox("Com port not detected", [Link], "Warning !!!")
[Link] = ""
[Link]()
[Link] = False
Return
End Try
[Link] = True
End Sub
Private Sub ButtonConnect_Click(ByVal sender As [Link], ByVal e As
[Link])
[Link] = [Link]
[Link] = [Link]
[Link]()
[Link]()
[Link]()
[Link] = False
'[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = True
[Link] = [Link]
[Link] = "Status : Connected"
End Sub
Private Sub ButtonDisconnect_Click(ByVal sender As [Link], ByVal e As
[Link])
[Link] = [Link]
[Link] = True
[Link] = "Status : Disconnect"
[Link] = True
'[Link] = True
[Link] = True
[Link] = True
[Link] = True
[Link] = False
[Link]()
[Link]()
[Link]()
End Sub
Public Sub Timer1_Tick_1(ByVal sender As [Link], ByVal e As
[Link]) Handles [Link]
End Sub
Private Sub ConnectionToolStripMenuItem_Click(ByVal sender As [Link],
ByVal e As [Link])
[Link]()
End Sub
Private Sub MonitoringToolStripMenuItem_Click(ByVal sender As [Link],
ByVal e As [Link])
[Link]()
End Sub
End Class