Unable to Load Theme from my DLL

5 posts, 0 answers
  1. Steve Austin
    Steve Austin avatar
    7 posts
    Member since:
    Jan 2010

    Posted 26 Jan 2010 Link to this post

    Hi all

    I am evaluating Telerik wincontrols and have this problem...

    I have an embedded theme (MyTheme.xml) resource in my own Class Library (MyDll.dll),
    The "MyTheme.xml" is set as an embedded resource and I refrence it in my main program.

    I try to load the resource from my main VB program (MyProgram) but I cannot get the theme to load.

    I am able to load a LOCAL theme resource from inside my main program (MyProgram) using the following

    "ThemeResolutionService.RegisterThemeFromStorage(storageType.Resource,

    "MyProgram.MyTheme.xml")"

     

     


    But when I try to get the theme from my DLL this does NOT work ?
    "ThemeResolutionService.RegisterThemeFromStorage(storageType.Resource, "MyDll.MyTheme.xml")"


    I have exhausted all the examples on the help & support website and I ned help with this

    If you know the answer please reply !.
  2. Steve Austin
    Steve Austin avatar
    7 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

    Anyone got any ideas ?. I post a Telerik support ticket, but no answer as yet :-(
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 29 Jan 2010 Link to this post

    Hi Steve Austin,

    Thank you for writing. Please, find a very detailed description how to add custom themes in your application in the following KB Article. Let me know if you still have any additional questions.

    Sincerely yours,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Steve Austin
    Steve Austin avatar
    7 posts
    Member since:
    Jan 2010

    Posted 30 Jan 2010 Link to this post

    Hi Martin, thanks for your reply

    As I said,  "I have exhausted all the examples on the help & support website" (and the videos)
    I have read the KB Article many times and followed on to the other KB Article that explains How to make a theme component BUT, the "Skindemo.zip" is written in C# which i cannot use, I need example in VB.net.
    I also do not completly understand the KB Article, I am having a real hard time trying to get this simple thing to work.
    (I'm starting to think that it doesnt work)

    Can you supply a VB example that works without refering to an existing example or KB Article ?.


    Please help if you know how :-)

    Ps: I tried to attach an example.zip but site wont allow zip's

  6. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 03 Feb 2010 Link to this post

    Hello Steve Austin,

    I noticed that you have already found the answer to your question in the support ticket regarding the same topic. We are glad that we were able to help you.

    Sincerely yours,
    Nikolay
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top
UI for WinForms is Visual Studio 2017 Ready