Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
How do I design a login form using VB.NET?
Posted
Updated 10-Nov-10 4:00am
v2

There is no built in functionality. Just create a regular form with TextBox controls for username/password and add buttons for Login and Cancel.

When the user clicks Login, authenticate the username/password combination (typically with a DB call) and then if that succeeds, show them the main form. If it fails, display an error or close and exit the app (depending on how you want to approach this).
 
Share this answer
 
I wrote this article:

Winform Application Login[^]

and this tip/trick:

Multiple Subsequent "Main" Forms in C# Apps[^]

They're in C#, but you shouldn't have any problems adapting them to VB.Net.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900