Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Maximum = 200 ProgressBar1.Value = ProgressBar1.Value + 1 If ProgressBar1.Value = ProgressBar1.Maximum Then Label1.Visible = True Label1.Text = "I love you" Timer1.Enabled = False ProgressBar1.Value = 0 Beep() ProgressBar1.Visible = False End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)