Jump to content

Create a login form that starts when the program is started and then if the user enters the correct password and username have the program hide the login form and show the main form

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to comment
https://linustechtips.com/topic/265307-vb-login-screen/#findComment-3606481
Share on other sites

Link to post
Share on other sites

Im trying to make a login screen  for my program, now how do i make the login screen open first when i run the program instead of my first form?

 

Create a new form, then in solution explorer double click on program.vb. 

 

Where it says 

Application.Run(new Form1());

Change Form1 to the form name you want it to load when your program starts.

Link to comment
https://linustechtips.com/topic/265307-vb-login-screen/#findComment-3609811
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×