I am wondering how do I close a form after I open up a new form.
For instance I have a login form and when they login I open a new form up but I want to close the login form down.
So how would I do this?
I am making these forms on windows mobile 6 compact edition. Not sure if it would be different then in windows forms.
If the main form is the Login window, you will only be able to hide it, since if you close it all other child windows will be closed too.
You have 2 options I guess:
1- Make your application’s form, the main one. When the application starts, hide it and display the login window. When the login window is closed, show the main form.
2- Once the user enters his credentials in the login window, hide it (do not close it), and then open the other form. When the second one is closed, close both to shut the application down.