Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a project at work that uses a parent form to open child forms inside.
So we have to use form.show and not showdialog,but certain code after some of the form.show's must'n execute until the child forms closes.
Is there a way to do this without using showdialog ?

Thanx so long
Posted

1 solution

No. Show starts the process of opening the dialog and returns immediately - before the dialog window is even visible.

If you want to prevent further actions, then you will need to implement that manually, probably using the child form FormClosing event to detect when the user is finished with it.

ShowDialog would be a lot easier...:laugh:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900