Hi experts,
I'm trying to give some buttons a nice look. In fact, I got the look from some designers as .png image and am now trying to get them to work on those buttons.
The images do not completely fill a rectangular space. Instead, the corners are left transparent.
I subclassed a button with new properties:
NormalBackgroundImage
MouseoverBackgroundImage
DepressedBackgroundImage
I also created a Windows Form with one such button on top and set the button's properties to:
Backcolor = Transparent
Flatstyle = Flat
Flatappearence.Bordersize = 0
Now the button seems invisible. This is by intention.
The button loads its images correctly, depending on mouse and pressed states.
But there is one thing I don't like nor understand yet: When the mouse pointer enters the button area, its outline is drawn in gray without respect to the underlying form's background colour.
That way, the button looks rectangular, instead of looking the way it's
MouseoverBackgroundImage
was designed.
I already tested the image for transparency. The corners lose their transparent look when the mouse is within the button's rectangle.
How can I fix this?