-
[VB8]Help Login form
This is my code
Code:
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If UsernameTextBox.Text = "ABC" And PasswordTextBox.Text = "123" Then
MsgBox("Login succeeded")
Process.Start("-")
Else
MsgBox("Login Failed.")
'UsernameTextBox.Setfocus()
End If
Me.Close()
End Sub
How can i make more sets of user and password?
It wud be great if u can provide a better code. Thx
*I know can add "Or" after password text and paste UsernameTextBox.Text = "***" And PasswordTextBox.Text = "***" again but i need a shorter way
-
Re: [VB8]Help Login form
I don't know VB but I'm sure that you can get stuff from ini or text files.
-
Re: [VB8]Help Login form
*Removed*
Thought he said VB6
-
Re: [VB8]Help Login form