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

Strange behavior with red color

1 Answer 64 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Botond Long
Top achievements
Rank 1
Botond Long asked on 11 Nov 2009, 09:58 AM
Hello!

I have a really strange behavior with my project. If I put a RadImageButton to the ToolStripItem and I assign an image with red in it, it is not showing it. In design mode everything works fine, but as soon as I start the program (even from VS), I got an empty space for the image. 

I tried with several pictures (mainly with cancel and stop and so on), but as soon as the red appears, my image disappear. Other images works fine. The images are all pngs with transparent background.

I attached two screenshots and you can download a simple project from http://www.wellensteyn.ro/temp/HQ.ZIP
Does anybody experienced something like this? What can be the problem? 

Thanks: Botond

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Nov 2009, 09:14 AM

Hello Botond Long,

The described issue is actually an issue of the GDI+ API that we use to draw the image. This makes the issue common for the .NET WinForms technology and you can easily reproduce it by setting your image to a standard Microsoft Button. In order to workaround the issue, you can put your image in an ImageList and then set the ImageList to the desired control. Your image should be now drawn correctly.

I hope this helps. If you have additional questions, feel free to contact me.

Best wishes,

Nikolay
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.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Botond Long
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or