Limitation with ShowDialog ????

  • Thread starter Thread starter Guest
  • Start date Start date
When you use ShowDialog you are actually showing a form as a modal dialog
box. If you look at the help for ShowDialog you can see this description:

You can use this method to display a modal dialog box in your application.
When this method is called, the code following it is not executed until
after the dialog box is closed.

Thus you can use ShowDialog inside another form that is activated with
ShowDialog, but you can't show more forms in parallel using ShowDialog. This
is not a limitation but by design. To be able to show forms in parallel you
should use the Form.Show method.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

cyrjac said:
Is it possible that a parent form owns one more than active child form,
that each one have been poped up using the ShowDialog().
By looking at this page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_evtuv/html/etconwindowsforms.asp
it says that Resource-intensive features, such as enumerations and events
that are not appropriate for device applications, are not implemented.
 
Back
Top