Windows UserControl

2 posts, 0 answers
  1. Juan Pablo
    Juan Pablo avatar
    19 posts
    Member since:
    Oct 2008

    Posted 29 Oct 2008 Link to this post

    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!
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 31 Oct 2008 Link to this post

    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.
Back to Top