RKumar
RKumar

Reputation: 3

Winforms Toolstrip button image lose its color

i have a simple toolstrip button. Once I setup the background image of the button, image lose its one of the color. I am not sure what I am doing wrong here.

Before setup:

Original Image

After background setup:

After setting up background image

Somehow the arrow lose its color in the image. I am not sure if something to do with the transparency. There is no code. I just set the background image from properties.

Upvotes: 0

Views: 391

Answers (2)

farzad.moomeni
farzad.moomeni

Reputation: 31

  1. Add a "ToolStripButton"
  2. Right-click on the "ImageTransparentColor" property of "ToolStripButton" in properties panel and click on "Reset"
  3. Set your image

Upvotes: 0

Steeeve
Steeeve

Reputation: 915

The ToolStripButton class has an ImageTransparentColor property. The arrow in your image seems to match this color (magenta by default).

Upvotes: 1

Related Questions