Hi guys
I am having a hard time figuring how to make PictureBox show when TextBox1.Text received the "Alert Level 1".
VB.Net Code:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
SerialPort1.Open()
Timer1.Start()
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Dim s As String
Try
s = SerialPort1.ReadLine
TextBox1.Text = s
Catch ex As Exception
End Try
If (TextBox1.Text = "Alert Level 1") Then
PictureBox1.visible = True
ElseIf (TextBox1.Text = "No Alert Level") Then
PictureBox1.visible = False
End If
End Sub
End Class