visual programming 2 - wordpress.com
TRANSCRIPT
Validate users by using If…Then• Double click Button1 and type the following programs statements in
the event procedure:
If MaskedTextBox1.Text = "555-44-2222" ThenMsgBox("Welcome to the System")
ElseMsgBox("I don't recognize this number")
End If
• Run the Program
bangdanu.wordpress.com
Add password protection by using the And operators
bangdanu.wordpress.com
• Double click Button1 and modify the event procedure:
If MaskedTextBox1.Text = "555-44-2222" _
And MaskedTextBox2.Text = "54321" Then
MsgBox("Welcome to the System")
Else
MsgBox("I don't recognize this number")
End If
• Run the Program