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

Need help with themes on VB 2010 express

2 Answers 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
N
Top achievements
Rank 1
N asked on 23 Mar 2011, 12:21 PM
I've added all the themes manually to Visual Basic 2010 Express, and I add a theme to the form1.vb, and it does nothing! Do you have to code it out to tell it to run the theme on that form manually? If so please tell me the code becuase it took forever downloading the installation for it. So if someone can just help me, please do.....

2 Answers, 1 is accepted

Sort by
0
san
Top achievements
Rank 1
answered on 24 Mar 2011, 10:33 AM
i have the same problem
0
Ivan Petrov
Telerik team
answered on 28 Mar 2011, 11:18 AM
Hi N,

Thank you for writing.

After you drop the theme on the form, you need to set the ThemeName property of the form to the desired theme. For all other controls you can use the smart tag to set the ThemeName. This is valid if you want to see the controls with the theme at both design and run time. If you want the controls to have the theme only at run time you can use the following line in the Form_Load event handler:

ThemeResolutionService.ApplicationThemeName = "Desired theme name";
and the theme will be applied to all controls.

You can find more information on how to use themes in our Online Help.

I hope this will be useful you. If you need further assistance, I would be glad to provide it.

Best wishes,
Ivan Petrov
the Telerik team
Tags
General Discussions
Asked by
N
Top achievements
Rank 1
Answers by
san
Top achievements
Rank 1
Ivan Petrov
Telerik team
Share this question
or