Click here to Skip to main content
14,732,788 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?
Updated 10-Nov-10 5:00am

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).
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.

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