Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label4.Text = Format(TimeOfDay, "H:m:ss")
TestWorker = New System.ComponentModel.BackgroundWorker
TestWorker.WorkerReportsProgress = True
TestWorker.WorkerSupportsCancellation = True
If h378 = 0 Then
PictureBox4.Visible = False
Label8.Visible = True
Label14.Visible = False
End If
If Label4.Text = TextBox1.Text Then
PictureBox4.Visible = True
Label14.Visible = True
Label8.Visible = False
PortOut(&H378, 1)
h378 = 1
NotifyIcon1.ShowBalloonTip(5000, "Atención", "Timbre Activado", ToolTipIcon.Info)
TestWorker.RunWorkerAsync()
End If