How to close a form when move one to another form
-
I Have comleted our login form and when user input valid user name and password then he/she move to the MDI Form but I Want to close login form after enter valid username and password from samarjeet singh Kanpur(UP) india
samarjeet singh (Software Engineer)
-
I Have comleted our login form and when user input valid user name and password then he/she move to the MDI Form but I Want to close login form after enter valid username and password from samarjeet singh Kanpur(UP) india
samarjeet singh (Software Engineer)
if you use VB then use unload function
-
I Have comleted our login form and when user input valid user name and password then he/she move to the MDI Form but I Want to close login form after enter valid username and password from samarjeet singh Kanpur(UP) india
samarjeet singh (Software Engineer)
-
I Have comleted our login form and when user input valid user name and password then he/she move to the MDI Form but I Want to close login form after enter valid username and password from samarjeet singh Kanpur(UP) india
samarjeet singh (Software Engineer)
You cannot set the Startup object to be the login form. Closing the startup form will close your entire application because the app's message pump is attached to it. Your startup form should be your applications main form. In that form's code, you check to see if the user is logged in, if not, then you put up the login form to get authenticated. There should be a button in the login form to Cancel the login. Your main form's code should take that to mean it should quit.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
You cannot set the Startup object to be the login form. Closing the startup form will close your entire application because the app's message pump is attached to it. Your startup form should be your applications main form. In that form's code, you check to see if the user is logged in, if not, then you put up the login form to get authenticated. There should be a button in the login form to Cancel the login. Your main form's code should take that to mean it should quit.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007But you can set it as the startup form and just tell it to hide (vs2005) without problems.
Please check out my articles: The ANZAC's articles
-
But you can set it as the startup form and just tell it to hide (vs2005) without problems.
Please check out my articles: The ANZAC's articles
Not a good desgin, but it works.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007