Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Toolstrip (obsolete as of Q3 2010) > Strange behavior with red color

Not answered Strange behavior with red color

Feed from this thread
  • Botond Long avatar

    Posted on Nov 11, 2009 (permalink)

    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
    Attached files

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Nov 18, 2009 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Toolstrip (obsolete as of Q3 2010) > Strange behavior with red color
Related resources for "Strange behavior with red color"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]