Re: MDI and ShowDialog()

Peter Suter <[email protected]> Fri, 14 Dec 2007 11:56:24 +1100
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <002401c83dec$2696eaa0$0601010a@dev5>
hows about
ShowDialog(SF)


----- Original Message -----
From: "Steve Abaffy" <[email protected]>
To: <[email protected]>
Sent: Friday, December 14, 2007 11:25 AM
Subject: [DOTNET-WINFORMS] MDI and ShowDialog()


> After considerable research I cannot find a way to open a form using
> ShowDialog() within a MDI parent.
>
> SomeForm SF = new SomeForm(parameters);
> SF.MdiParent = MdiParent;
> SF.ShowDialog(); - Blows up here with an exception thrown.
> Do More Stuff here after form closes
>
> All I have read says that this cannot be done, but I don't believe that.
>
> Any help would be appreciated.
>
> Thanks.
>
> __________ NOD32 2721 (20071213) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>