469,330 Members | 1,280 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

Creating child Form from within another child form

VM
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.
Nov 15 '05 #1
1 1480

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

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.