Using .ShowDialog with MDI Children ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

We are trying to build a .NET MDI application with several child windows -
some of which should be treated like dialogs and some as true child windows.

We keep getting an error when we call Form.ShowDialog(Me) after having set
the MDIParent property.

Is it not possible in the .NET Framework 1.1 to use dialogs like that?

thanks if anyone can help.

Philip
 
Philip said:
We are trying to build a .NET MDI application with several child windows -
some of which should be treated like dialogs and some as true child
windows.

We keep getting an error when we call Form.ShowDialog(Me) after having set
the MDIParent property.

Is it not possible in the .NET Framework 1.1 to use dialogs like that?

No, that's not supported. MDI containers are used to manage a set of
/documents/ by design. Dialogs should be shown modally to the MDI
container.
 
Philip said:
Is it not possible in the .NET Framework 1.1 to use dialogs like that?

Why would you want to? If you open a modal dialog, then what's the point
in setting MDIParent?

/Gunnar
 
Hi,

The reason wqe wanted to do it like that was so that these child dialogs
would still be inside the MDI container, instead of outside it.

Just look and feel, basically.

thanks

Philip
 
Philip said:
The reason wqe wanted to do it like that was so that these child dialogs
would still be inside the MDI container, instead of outside it.

Just look and feel, basically.

Yep, but not supported by design.
 
Back
Top