Link to home
Start Free TrialLog in
Avatar of Sheldon Livingston
Sheldon LivingstonFlag for United States of America

asked on

vb.net VS 2010 button control issue

I'm writing an app in VB.NET (VS 2010 edition)

Any buttons that are set with a background image (text align = bottom center) cannot show the text on a Windows 7 machine.  Instead of seeing the text, the text area is all black... User generated image
Instead of the black box, the word 'Items' should be seen.
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Make sure you haven't inadvertently set the BackColor() property of the Button to Black.
Avatar of Sheldon Livingston

ASKER

It works fine in XP...
I'm running Win 7 and VS 2010 and don't have any problems.  Are you compiling on an XP machine?
Yes...

The issue, I believe, is transparency.  I replace the JPG with a PNG using a transparent color behind/around the image and everything in the button is totally black now except for the actual image.
ASKER CERTIFIED SOLUTION
Avatar of Sheldon Livingston
Sheldon Livingston
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Found own solution