VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create a login form for your application using 2 text box's and 2 command buttons

by Vivian Richards (3 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 17th February 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Create a login form for your application using 2 text box's and 2 command buttons

Rate Create a login form for your application using 2 text box's and 2 command buttons



'label 1 button Login and 1 cancel

'for the cancel button type in...

Private Sub Command2_Click()
End
End Sub

'for the Login button type in....

Private Sub Command1_Click()
If Text1.Text = "your username here" And Text2.Text = "your password here" Then
Me.Hide
Form1.Show
Else
Me.Hide
MsgBox "Login Failed",vbCritical
End If
End Sub

Download this snippet    Add to My Saved Code

Create a login form for your application using 2 text box's and 2 command buttons Comments

No comments have been posted about Create a login form for your application using 2 text box's and 2 command buttons. Why not be the first to post a comment about Create a login form for your application using 2 text box's and 2 command buttons.

Post your comment

Subject:
Message:
0/1000 characters