views:

311

answers:

2

Let me present the problem first. I need to load all images that I have used in my project externally without embedding. The images are present either in skins or as icons for items in trees. I came across the IconUtility class here I was able to modify it and use it for trees but the problem is we cannot use iconutility for the same component to set 2 different skins (like for a button - upskin downskin). I was not able to think of a workaround with iconutility. Is it possible to simulate embed and create a class dynamically and return the class at runtime?

A: 

This was what I was looking for ... Unfortunately the author claims he was not able to use it for button skins

dante
A: 
back2dos
Thanks for the feedback. First solution is really hardcore and I cannot understand the 2nd solution. Can you explain it in detail?
dante