I created a login form in c#.
If a user signs in with the right password and username and clicks on ‘Login’ then the second form opens. How do I close the login form after the last step?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Change your Main() method in Program.cs to display the login dialog. Don’t start the message loop unless a valid login was entered. For example:
Your LoginForm should set its DialogResult property to OK if it detected a proper login.