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

Unable to Load Theme from my DLL

4 Answers 172 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Steve Austin
Top achievements
Rank 1
Steve Austin asked on 27 Jan 2010, 05:37 AM
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 !.

4 Answers, 1 is accepted

Sort by
0
Steve Austin
Top achievements
Rank 1
answered on 27 Jan 2010, 03:46 PM
Anyone got any ideas ?. I post a Telerik support ticket, but no answer as yet :-(
0
Martin Vasilev
Telerik team
answered on 29 Jan 2010, 03:59 PM
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.
0
Steve Austin
Top achievements
Rank 1
answered on 30 Jan 2010, 10:25 AM

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

0
Nikolay
Telerik team
answered on 03 Feb 2010, 02:57 PM
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.
Tags
Themes and Visual Style Builder
Asked by
Steve Austin
Top achievements
Rank 1
Answers by
Steve Austin
Top achievements
Rank 1
Martin Vasilev
Telerik team
Nikolay
Telerik team
Share this question
or