Private Sub Button2_Click(sender As Object, e As EventArgs) Handles
Button2.Click Close() End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click If TextBox1.Text = "anonymous" And TextBox2.Text = "09358108794" Then Timer1.Start() Else MsgBox("Username or Password is Incorrect", MsgBoxStyle.Critical, "Error") End If End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(3) Label3.Text = ProgressBar1.Value If ProgressBar1.Value = ProgressBar1.Maximum Then form2.show() Me.Hide() End If End Sub End Class