Making a simple login screen in VB ( With screenshots. )
Hey there MPGH, today I ma teach you how to make a login screen, then when you log in, window2 will open.
Simple
___________________________
Requirements:
1.Brain - If you come here and ask "wu softar u uze" I will find you and I will kill you! jk bro
but really don't post those comments.
2.Hands - If you really want to learn look at the code and write it your self if you make like 100 mistakes then its fine keep trying till you get it right, if you copy and paste the code. Well please press back, and stop reading this tutorial, because its no way to learn.
3.Eyes - Do I have to tell you?
4.Visual Basic - I haven't tried older versions but I am pretty sure it will work since its basic, no SQL. Ill do it in the next tutorial.
5.Follow every step so you won't get any errors
______________________________
What you will need:
3 check boxes
3 Labels
1 Button
1 Groupbox
2 text boxes
_______________________________
Great. Lets start this!
1.Open your visual basic

Wasn't hard, was it?
2.Make a new project, and chose Windows Forms Application, then change the application name to anything you want, and then press enter, or okay.

3.Change the size of your application to anything you want, something that fits your application's login screen.

4.Open the toolbox option and get a groupbox, then make it big so it fits the whole application window. You can change the groupbox1 name if you want to change it to anything else.

5.Now drag two labels to the app, and change the first one to Username, and the second one to password.

6.Drag two textboxs don't mess em up
first one to username and the second one to password, then click on the second textbox that is beside the password label and press properties then go down, and change the passwordchar to "*" or "x" or anything you want. It will hide the chars when someone types a password in that box.

7.Drag 3 checkboxs and one label to the application, delete the text for the checkboxes and change Enabled to False. Then change the label to "You have 3 trys if you fail the application will close." Or something similar to that.

8.Get a button and place it anywhere you want at the application window, and change the text to "Login" then double click on it.

After you double click:

9.Click on new item and make another windows application, and change the name ONLY if you want too.
10.Now the coding starts.
Change Form2.Show if you changed you're applications name when you built a new item.
Have a great day MPGH, if you want me to make more tutorials please post a comment below, or you can PM me with private requests.
press the thanks button!
<3
Simple

___________________________
Requirements:
1.Brain - If you come here and ask "wu softar u uze" I will find you and I will kill you! jk bro
but really don't post those comments.2.Hands - If you really want to learn look at the code and write it your self if you make like 100 mistakes then its fine keep trying till you get it right, if you copy and paste the code. Well please press back, and stop reading this tutorial, because its no way to learn.
3.Eyes - Do I have to tell you?
4.Visual Basic - I haven't tried older versions but I am pretty sure it will work since its basic, no SQL. Ill do it in the next tutorial.
5.Follow every step so you won't get any errors

______________________________
What you will need:
3 check boxes
3 Labels
1 Button
1 Groupbox
2 text boxes
_______________________________
Great. Lets start this!
1.Open your visual basic

Wasn't hard, was it?
2.Make a new project, and chose Windows Forms Application, then change the application name to anything you want, and then press enter, or okay.

3.Change the size of your application to anything you want, something that fits your application's login screen.

4.Open the toolbox option and get a groupbox, then make it big so it fits the whole application window. You can change the groupbox1 name if you want to change it to anything else.

5.Now drag two labels to the app, and change the first one to Username, and the second one to password.

6.Drag two textboxs don't mess em up
first one to username and the second one to password, then click on the second textbox that is beside the password label and press properties then go down, and change the passwordchar to "*" or "x" or anything you want. It will hide the chars when someone types a password in that box.
7.Drag 3 checkboxs and one label to the application, delete the text for the checkboxes and change Enabled to False. Then change the label to "You have 3 trys if you fail the application will close." Or something similar to that.

8.Get a button and place it anywhere you want at the application window, and change the text to "Login" then double click on it.

After you double click:

9.Click on new item and make another windows application, and change the name ONLY if you want too.
10.Now the coding starts.
Code:
If TextBox1.Text = "Username" And TextBox2.Text = "password" Then // If you logged in correctly then show Form2.
Form2.Show() // Form 2 showed.
Me.Hide() // Hide the login screen.
ElseIf TextBox1.Text <> "Username" And TextBox2.Text <> "password" Then // but if password or username was incorrect
If CheckBox1.Checked = False Then // Failed 1
CheckBox1.Checked = True // Then checkmark box 1
ElseIf CheckBox2.Checked = False Then // Failed 2
CheckBox2.Checked = True // Then checkmark box 2
ElseIf CheckBox3.Checked = False Then // failed 3
CheckBox3.Checked = True // Then checkmark box 3
ElseIf CheckBox3.Checked = True Then // but if failed again
MsgBox("Closing Anon Application...", MsgBoxStyle.Critical, "Closing Anon Application...") //show msg box
End // close application
End If
End If
Have a great day MPGH, if you want me to make more tutorials please post a comment below, or you can PM me with private requests.
press the thanks button!
<3