Windows Develop Bookmark and Share   
 index > Windows Forms General > how to open MdiChild from another MdiChild
 

how to open MdiChild from another MdiChild

I open MdiChild_1 from the parent MainForm and I want to open MdiChild_2 from a button on the MdiChild_1

I tried this code but not working..

frmMain MainForm = new frmMain();

frmRemarks RemarksForm = new frmRemarks();

RemarksForm.MdiParent = MainForm;

RemarksForm.Show();

Jassim Rahma  Wednesday, September 13, 2006 7:53 PM

Hi,

try the following code:

frmRemarksform = new frmRemarks();
form.MdiParent = this.MdiParent;
form.Show();

Andrej

Andrej Tozon  Wednesday, September 13, 2006 8:02 PM

Hi,

try the following code:

frmRemarksform = new frmRemarks();
form.MdiParent = this.MdiParent;
form.Show();

Andrej

Andrej Tozon  Wednesday, September 13, 2006 8:02 PM

Hi,

Is your problem solved?

Thank you,
Bhanu.

Bhanu Prakash Nunna - MSFT  Wednesday, September 13, 2006 11:58 PM

Also add

RemarksForm .TopLevel = False;

JRQ  Thursday, September 14, 2006 9:24 PM

problem solved with:

frmRemarksform = new frmRemarks();
form.MdiParent = this.MdiParent;
form.Show();

Jassim Rahma  Friday, September 15, 2006 12:35 PM

You can use google to search for other answers

Custom Search

More Threads

• Paste a File from Clipboard
• VBScript to VB2005
• BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress.
• Owner drawn control question
• DateTimePicker control problem
• NDoc Issues
• Issues with form positioning
• very new and confussed sorry if wrong place to post??
• [DrawListViewItemEventArgs..::.DrawText] text always draw on left-top?
• How can I pass datas from a windows form to a webpage in a AxWebBrowser