.net - How to correctly ShowDialog() from inside an MDIChild form? -


I have an MDIChild form that needs to show a dialog. I am currently doing this from within the mdichild form ...

  f.ShowDialog (m)  

Do I F.ShowDialog (Mdiparent) ?

ShowDialog () ? What is the difference when setting up the master before calling

item

difference in which parents If you set up a parent explicitly, the owner is the owner of the dialog in that window. If you do not set it (using the version without the parameters of ShowDialog), then the owner of your app's current active window dialog. That is, BTW

This is useful where using the FormStartPosition.CenterParent enumeration to focus your dialogue by setting the property to StartPosition.


Comments