I'm a newbie so please be patient with me. I've two forms, one is the main form and the other is the login form. On start up, I would like to have the login form show up so the user can enter their credentials and upon successfully login I want the main form to show. What is the best way of doing this? Please post some tips. Thanks in advance.
nicewave
0
Newbie Poster
Recommended Answers
Jump to Postopen your Program.cs file in your solution, and in the Application.Run(); type new MyLoginForm so would be like:
Application.Run(new LoginForm());
This specifies the form that you wish to run first.
Hope this helps.
All 3 Replies
ChrisHunter
152
Posting Whiz in Training
Featured Poster
ChrisHunter
152
Posting Whiz in Training
Featured Poster
Mitja Bonca
557
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.