VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A login thing

by SeeD (22 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

This is a ordinary login program, kind of like aol. It makes sure the person enters a username and a password more than 1 letter. It's pretty cool, I think. I would use something like this on all my projects.

Inputs
1. 2 forms 2. on form 1, put 2 textboxes and a commandbutton 3. thats all 4. use the below code in form1s general decs...

Rate A login thing

Form_Load()
  Me.Caption = "Login for project"
  Text1.Text = "username"
  Text2.Text = "password"
  Command1.Caption = "Next" '  
End Sub
'the next code is for command1
Private Sub Command1_Click()
  If Text1.Text <> "" And Text2.Text > "*" Then
  Form2.Show
  Else MsgBox "An error was detected, password must be at least 2 digits and a username must be entered.", 8, "Invalid entry"
  End If
  End Sub

Download this snippet    Add to My Saved Code

A login thing Comments

No comments have been posted about A login thing. Why not be the first to post a comment about A login thing.

Post your comment

Subject:
Message:
0/1000 characters