Home > Net >  Button's background color turns grey when mouse hovering on it C# Winforms
Button's background color turns grey when mouse hovering on it C# Winforms

Time:02-10

I made a simple design for my WinForms app in Photoshop and I want to make some borderless buttons. In FlatAppearance properties, I changed border size to 0 and the FlatSyle is Flat but when the mouse is hovering on the button, its background color turns to grey, although I changed it to transparent. I'll attach some pics to get the problem better.

Can somebody help me, please?

How I want to look:

how I want to look

how it looks

how it looks

CodePudding user response:

In the same place that you changed the border size to zero, change the MouseOverBackColor to Transparent:

enter image description here

  •  Tags:  
  • Related