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.

TabHost ThemesEnabled

Thread ID:





1836 Nov 29,2002 08:19 AM Dec 3,2002 01:57 PM Windows Forms 4
Tags: Tools
Sebastien Lange
Asked On November 29, 2002 08:19 AM

Hi, I have a MDI application that manage my forms with a TabbedMDIManager. I'd like to Enable/Disable XP Themes for the application and also the tabs, like the TabControlHost does. Is it using MDITabPanel? Do you have a sample? Sebastien

Sebastien Lange
Replied On November 29, 2002 08:52 AM

I tried the following, but I still have the same look&feel. (I have XP of course). public class MyTabbedMDIManager : TabbedMDIManager { // The base class creates a new instance of the MDITabPanel class. protected override MDITabPanel CreateMDITabPanel() { MDITabPanel tab = new MDITabPanel(this); tab.ThemesEnabled = true; return tab; } // Method gets called to initialize a tab control after it gets created. protected override void InitMDITabPanel(MDITabPanel tabPanel) { base.InitMDITabPanel(tabPanel); // Go ahead and set some properties on the tab control. tabPanel.ThemesEnabled = true; } }

Administrator [Syncfusion]
Replied On December 2, 2002 08:29 AM

Sebastien, Also change the tab's TabStyle property as follows: this.tabControlExt1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRenderer3D); Only the 3D style supports themes. Regards, Praveen Ramesh

Nik Vale
Replied On December 2, 2002 03:23 PM

Praveen, It seems the only way to achieved themed MDI tabs is to either derive a class from TabbedMDIManager, or change the original class... Why doesn't the TabbedMDIManager have a ThemesEnabled property? Is this going to supported in the next release? Nik.

Administrator [Syncfusion]
Replied On December 3, 2002 01:57 PM

Nik, I will make this a feature request for our next minor release. It should be pretty easy to include this feature. -Praveen


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.

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.