Hi all

Sure this has come up plenty of times before but couldn't find it

I've a form I want to display modally within an MDI app and get a "Only top level forms can be shown modally.....

Any solution to this. I can't beleive it is that difficul

Eldon

Re: Modal MDI Child by Eric

Eric
Thu Feb 26 09:10:47 CST 2004

Don't assign the MdiParent to the dialog.

Or you could override the ShowDialog method and do your own blocking.

HTH;
Eric Cadwell
http://www.origincontrols.com



Re: Modal MDI Child by hirf-spam-me-here

hirf-spam-me-here
Thu Feb 26 11:10:20 CST 2004

* "=?Utf-8?B?RWxkb24gRmVycmFuIGRlIFBvbA==?=" <anonymous@discussions.microsoft.com> scripsit:
> Sure this has come up plenty of times before but couldn't find it.
>
> I've a form I want to display modally within an MDI app and get a "Only top level forms can be shown modally....."

Don't show the form as MDI child.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet/>