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.

Form Theming: deciding between Office2010Form and MetroForm at runtime

Thread ID:





118507 Mar 13,2015 03:35 PM Mar 16,2015 08:09 AM Windows Forms 1
Tags: MetroForm
Asked On March 13, 2015 03:35 PM


I'd like to be able to have a theme setting in my app where the user can choose a theme (Office2010Form, MetroForm) and a theme color(Blue, Black, Gray, etc).

The problem is that Office2010Form and MetroForm are separate classes and as such I would have to duplicate business logic in two types of forms for every form in my app to achieve this.

For this situation, it would be ideal if there was just simply a class called 'SyncFusionForm' which had a property that we could set to either Office2010Form or MetroForm etc...; but this does not exist.

Is there some type of workaround that I could use to achieve this effect of setting the form type at runtime based on a user setting? Perhaps something simulating multiple inheritance with interfaces, or some type of late binding on a base class that both Office2010Form and MetroForm derive from?

Thanks in Advance! 

Senthil Kumaran Rajan [Syncfusion]
Replied On March 16, 2015 08:09 AM

Hi Taylour,


Thank you for using Syncfusion products.


We would like to let you know that MetroForm and Office2010Form are different type of customizable Form controls. Hence both cannot be used as parent of same, at a time.


Please let us know if you need further assistance on this.





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.