This is a migrated thread and some comments may be shown as answers.

Windows UserControl

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Juan Pablo
Top achievements
Rank 1
Juan Pablo asked on 29 Oct 2008, 04:43 PM
Hi everybody!

I have a UserControl in a windows form, and I need to apply a Telerik theme to it. In a normal form you make that form to inherit from the class ShapedForm and it works, but in my case I don't know what to do.

Please experts, help me!

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 31 Oct 2008, 07:28 PM
Hello Juan Pablo,

Thank you for contacting us.

First, the theme component has to be dragged onto the form in case of default themes (e.g. Office2007Silver). Then in the Form Load event add the theme name to your form:

public partial class Form1 : ShapedForm  
{  
        private void Form1_Load(object sender, EventArgs e)  
        {  
            ...             
            this.ThemeName = "Office2007Silver";  
        }  
... 

Do not hesitate to write me back if you have further questions.

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Juan Pablo
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or