close form
-
hi, i design a application that opens a form from other form, i use the ".showdialog" ".show" methods that works fine. but a also want to close the first form when the second form loads, but i can´t manage to do that. when i trie to do that i shutdown the all application or something else!!! thanks!!!:cool:
-
hi, i design a application that opens a form from other form, i use the ".showdialog" ".show" methods that works fine. but a also want to close the first form when the second form loads, but i can´t manage to do that. when i trie to do that i shutdown the all application or something else!!! thanks!!!:cool:
The logical thing to do here is to make both forms laid out on user controls, then show them both in the one form.
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
hi, i design a application that opens a form from other form, i use the ".showdialog" ".show" methods that works fine. but a also want to close the first form when the second form loads, but i can´t manage to do that. when i trie to do that i shutdown the all application or something else!!! thanks!!!:cool:
You may hide the first form (Closing your start up form will close the application). Also code will stop executing at the call ".ShowDialog()", and will only continue after the user has closed the second form.
Nirandas, a developer from India. http://www.nirandas.com