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

Reusing the MovieLab Theme - Not Working

1 Answer 105 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Sacha
Top achievements
Rank 1
Sacha asked on 11 May 2012, 10:41 AM
I'm sure this is something very small and silly but I can't figure it for some reason.

  1. I've copied "TMDBTheme.tssp" to my "C:\" drive.
  2. Right click on my project and "Add Existing Item"
  3. Find the file on my "C:\" drive and add it
  4. Right click on the file in my project explorer and select "Properties".
  5. Set "Build Action" to "Embedded Resource"
  6. Add the following two lines to my form constructor:
  7. ThemeResolutionService.LoadPackageFile("TMDBTheme.tssp");
  8. ThemeResolutionService.ApplicationThemeName = "TMDBTheme";
  9. Build my project
  10. Run my project
  11. I get a FileNotFoundException error: "File 'TMDBTheme.tssp' does not exist."

What am I missing?

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 14 May 2012, 12:09 PM
Hi Sacha,

Thank you for contacting us.

Try changing the code in step 7 to:
ThemeResolutionService.LoadPackageResource("DefaultProjectNamespace.YourThemeName.tssp");

Please note that you should use LoadPackageResource method instead of LoadPackageFile. Also, you will need to add the default project namespace to the beginning of the path. You will be able to find more information on the topic in the Loading Theme Package section of the following help article: http://www.telerik.com/help/winforms/tools-visual-style-builder-working-with-visual-style-builder-saving-and-loading-theme-files.html.

I hope this helps. Let me know if you encounter any other difficulties.

Greetings,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Themes and Visual Style Builder
Asked by
Sacha
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or