Strange behavior with red color

Thread is closed for posting
2 posts, 0 answers
  1. Botond Long
    Botond Long avatar
    3 posts
    Member since:
    Sep 2009

    Posted 11 Nov 2009 Link to this post


    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
    Does anybody experienced something like this? What can be the problem? 

    Thanks: Botond
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 18 Nov 2009 Link to this post

    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,

    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.
Back to Top