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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Replacing MDI child Forms in a TabbedMDIManager

Thread ID:

Created:

Updated:

Platform:

Replies:

28144 Apr 25,2005 07:04 PM UTC Apr 25,2005 09:13 PM UTC WinForms 1
loading
Tags: Tools
Peter Moss
Asked On April 25, 2005 07:04 PM UTC

I have a situation where I am using a TabbedMDIManager and I want to replace an MDI child Form in a tab. That is, assuming I have multiple tabs visible and the selected tab is the 2nd one. Based on some user action, I want to replace the MDI child Form in that 2nd tab with a different MDI child Form. The best I could come up with is to close the 2nd (active) tab, create the new Form, set its MDIParent = this, Show() the new child Form, and then move the new tab to the 2nd tab position. This works, but there is all sorts of flashing that occurs because what happens is that updates occur when the old tab is closed (some other tab becomes selected and focused), and then the new MDI child Form gets added and given focus. What I''d like to do is somehow defer these updates. I''ve tried calling SuspendLayout()/ResumeLayout() on the TabbedMDIManager and the contained MDITabPanel objects, but this doesn''t seem to make any difference. Any idea on how to accomplish this with a minimal amount of flickering?

Administrator [Syncfusion]
Replied On April 25, 2005 09:13 PM UTC

Hi Peter, Please take a look at the following FAQ Entry: Is there a way to halt a screen from painting until all the controls on the form are initialized? Hopefully it will solve your problem. Regards, Gregory Austin 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

;