Hi VM,
I think you should do like this:
frmReportViewer.MdiParent=this.MdiParent;
HTH
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "VM" <None>
| Subject: Creating child Form from within another child form
| Date: Mon, 1 Sep 2003 22:42:17 -0500
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <e5**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 167.83.98.22
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:181537
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I would like to display a child form inside of an MDI but the problem is
| that I'll be invoking that child form from within another child form.
| If I use this code:
| frmReportViewer frmReportViewer = new frmReportViewer();
|
| //frmReportViewer.MdiParent = this;
|
| frmReportViewer.Show();
|
| It'll create the form but it won't be inside the parent MDI form.
|
| What can I do?
|
| Thanks.
|
|
|