Using .ShowDialog with MDI Children ?

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
 
H

Herfried K. Wagner [MVP]

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.
 
G

Gunnar Liljas

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
 
G

Guest

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
 
H

Herfried K. Wagner [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top