Tutorials Navigation
[VB.NET] How to Make a Login for Your Application
Tutorial Name: [VB.NET] How to Make a Login for Your Application
Category: PC Tutorials
Submitted By: Maj
Date Added:
Comments: 2
Views: 1,598
Related Forum: PC Building Forum
Share:
As the title states, this tutorial will walk you through step by step on how to make a good log in for your application (This is basic) which allows users to setup their own accounts!!
Step1. Make a form and add 2 Textbox's, 2 Button's & 2 Labels. Make Textbox1 the username text & Textbox2 the password text (This is just to stay organised)
It should look something like this when done
Step2. Make another form (This is for existing users) and add 2 Label's, 2 Textbox's & 1 Button. Now make textbox1 handle the username & textbox2 handle the password. Just like we did above. Now you should have something like the image shown below
Step3. Go to your application's properties & navigate to the settings tab. Click on the first row and in the first column add 'Username'. Now go down to the second row & add 'Password'. It should look like the image down below!!
Step4. Now were going to start adding all the code, as we have finished the design side of things!! Navigate to Form 1, now double click your register button and add the following code
Now it should look something like this
Step5. Go back to your Form 1, Now double click the Log In button. Then add the following code
When that's done it should look something like this
Step6. You're almost done!! Now, for the Log in button (On form 2) we need to make it functional!! So go ahead and add the following code
Now it should look something like this
Now, You're all done & your log in / registration for your application should work!! If you are having issues with this & cannot get it to work (or other issues) feel free to PM me! I'm always happy to help
Step1. Make a form and add 2 Textbox's, 2 Button's & 2 Labels. Make Textbox1 the username text & Textbox2 the password text (This is just to stay organised)
It should look something like this when done
Step2. Make another form (This is for existing users) and add 2 Label's, 2 Textbox's & 1 Button. Now make textbox1 handle the username & textbox2 handle the password. Just like we did above. Now you should have something like the image shown below
Step3. Go to your application's properties & navigate to the settings tab. Click on the first row and in the first column add 'Username'. Now go down to the second row & add 'Password'. It should look like the image down below!!
Step4. Now were going to start adding all the code, as we have finished the design side of things!! Navigate to Form 1, now double click your register button and add the following code
My.Settings.Username = TextBox1.Text
My.Settings.Password = TextBox2.Text
MsgBox("Successfully Created the Account " + TextBox1.Text, MsgBoxStyle.Information)
Form3.Show()
Me.Hide()
My.Settings.Save()
Now it should look something like this
Step5. Go back to your Form 1, Now double click the Log In button. Then add the following code
Me.hide
Form3.show <- This will be your actual application
When that's done it should look something like this
Step6. You're almost done!! Now, for the Log in button (On form 2) we need to make it functional!! So go ahead and add the following code
If TextBox1.Text = My.Settings.Username And TextBox2.Text = My.Settings.Password Then
MsgBox("Successfully Logged In!!", MsgBoxStyle.Information)
Me.Hide()
Form3.Show()
Else
MsgBox("Incorrect Username or Password!!, Please try again", MsgBoxStyle.Critical)
End If
Now it should look something like this
Now, You're all done & your log in / registration for your application should work!! If you are having issues with this & cannot get it to work (or other issues) feel free to PM me! I'm always happy to help
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,563)
- 02. How to: Matrix Numbers | Batch File(1,919)
- 03. How to Password Protect Files on Windows(860)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,777)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,191)
- 06. How to embed an image on TheTechGame(3,125)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(13,041)
- 08. Host bot lobbies! Full Tutorial!(11,470)
- 09. Unban yourself [Plutonium BO2](14,272)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,403)
- 11. Best Crosshair Settings for Valorant(6,539)
- 12. Othercide The Surgeon Boss Guide(2,558)
- 13. Othercide Remembrances Unlock Guide(4,485)
- 14. Othercide Beginners Tips and Tricks(2,724)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,866)
"[VB.NET] How to Make a Login for Your Application" :: Login/Create an Account :: 2 comments