We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Removing forms from TabbedMDIManager

Thread ID:

Created:

Updated:

Platform:

Replies:

17553 Aug 11,2004 02:20 PM UTC Aug 15,2004 09:36 PM UTC Windows Forms 5
loading
Tags: Tools
Ken Law
Asked On August 11, 2004 02:20 PM UTC

I need to remove the forms from a tabbedMDIManager without Closing (and thus disposing) of the forms. I have a set of forms instantiated in memory and need to Hide and Show them in various configurations. If I call Hide() on a form, it disappears but the tab in the tabbed mdi remains visible. Clicking on the tab may show the form again. How do I remove forms from a tabbedMDIManager without Closing them?

Administrator [Syncfusion]
Replied On August 11, 2004 04:30 PM UTC

Hi Ken, You could hide and show the MDI child forms as shown in the code snippet below : // Consider the second MDI child // has to be hidden/shown // Hide MDI child this.f2.Hide(); this.f2.MdiParent = null; // Show MDI child this.f2.Show(); this.f2.MdiParent = this; Please refer to the test sample attached here, and let me know if this meets your requirements. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Hussein Ismail
Replied On August 12, 2004 01:29 PM UTC

Hi Guru, I''ve downloaded your sample application and it doesn''t seem to work. What version of the tools is this designed with? >Hi Ken, > >You could hide and show the MDI child forms as shown in the code snippet below : > >// Consider the second MDI child >// has to be hidden/shown > >// Hide MDI child >this.f2.Hide(); >this.f2.MdiParent = null; > >// Show MDI child >this.f2.Show(); >this.f2.MdiParent = this; > >Please refer to the test sample attached here, and let me know if this meets your requirements. Thanks for choosing Syncfusion products. > >Regards, >Guru Patwal >Syncfusion, Inc.

Administrator [Syncfusion]
Replied On August 12, 2004 05:51 PM UTC

Hi Hussein, This sample was created using the latest source code build of Essential Suite. Thanks for creating Direct-Trac incident 12953 in this regard. I will update you there shortly. We appreciate your continued interest in Syncfusion. Regards, Guru Patwal Syncfusion, Inc.

Ken Law
Replied On August 14, 2004 02:35 PM UTC

Thanks Guru, that works well. I did discover that if the f2.Show() call is put after the f2.MdiParent=this call, you avoid a screen flash that briefly shows the screen in its normal state (i.e. as if the MDITabbedManager was disconnected).

Administrator [Syncfusion]
Replied On August 15, 2004 09:36 PM UTC

Hi Ken, Thanks for the update, and also for sharing information regarding the order in which the Show method and MdiParent properties should be called/set. Please let me know if you need any other assistance. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;