Need help with themes on VB 2010 express

3 posts, 0 answers
  1. N
    N avatar
    1 posts
    Member since:
    Mar 2011

    Posted 23 Mar 2011 Link to this post

    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. san
    san avatar
    2 posts
    Member since:
    Mar 2011

    Posted 24 Mar 2011 Link to this post

    i have the same problem
  3. DevCraft R3 2016 release webinar banner
  4. Ivan Petrov
    Ivan Petrov avatar
    701 posts

    Posted 28 Mar 2011 Link to this post

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