Reusing the MovieLab Theme - Not Working

2 posts, 0 answers
  1. Sacha
    Sacha avatar
    10 posts
    Member since:
    May 2012

    Posted 11 May 2012 Link to this post

    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?
  2. Boryana
    Boryana avatar
    330 posts

    Posted 14 May 2012 Link to this post

    Hi Sacha,

    Thank you for contacting us.

    Try changing the code in step 7 to:

    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:

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

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top