Icons in project resources and UIStudio

Bars for Windows Forms Forum

Posted 12 years ago by Kasper
Version: 2.0.0094
Avatar
Hi,

I have a simple question: Why doesn't toolbar elements, like buttons, support using images from the project resources? ImageLists seem to have problems with more advanced icons, using stuff like alphablending, so it would be great if the project resources could be used to store icons and then let the UIStudio controls use these images as well. I can assign an Image to the controls, but it's loaded from a file only, instead of from the resources, which seems like a bad solution if you have lots of icons, with some of them being used for several buttons. Are there any plans to change this?

Kind regards,

Kasper

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The reason that is there is that Visual Studio 2005 has a bug with their default Image property editor when resources are assigned to an Image property that is located on an Object-based class (that doesn't inherit Component or Control).

So say in the designer you have a property on a class that doesn't inherit Component or Control and that property returns an Image. When you click on the ... button in the property grid, Visual Studio will throw a null ref exception. It is a bug in their code. Therefore as a workaround, we had to write our own designer UI editor that allowed for file selection.

This is the same issue that this individual ran into:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=526688&SiteID=1


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.