vinodjnair
asked on
How to close the login form after successful login to show the Main form?
I am working in vb.net. I have a login form and after successfull login I want to close the login form and show the Mdi Main form. But my application exits after the line frmMain.show. How should i make the application running after closing the login form.
Thanks in advance.
Hai,
You can try with the hide function and not closing
i.e., frmLogin.Hide
and then frmMain.show
Hope this helps
Regards
Venish
You can try with the hide function and not closing
i.e., frmLogin.Hide
and then frmMain.show
Hope this helps
Regards
Venish
hey vinodjinar -
the best way to go is to have your login form seperate from your main form.
have your main form open your login form - in modal mode is best -
then they do the login, or cancel
then you can continue on with a proper login, or close the program if they cancel the log in.
If the continue with proper login, you then just close the login form, and show your main form, then continue on with your process...
Hope this helps...
CK
the best way to go is to have your login form seperate from your main form.
have your main form open your login form - in modal mode is best -
then they do the login, or cancel
then you can continue on with a proper login, or close the program if they cancel the log in.
If the continue with proper login, you then just close the login form, and show your main form, then continue on with your process...
Hope this helps...
CK
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
is the login form your startup form?
and how do you close the login form?
you may better make frmMain your startup form and open login form as the first action.
leflon