• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • Last Modified:

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... Button issue
Instead of the black box, the word 'Items' should be seen.
0
classnet
Asked:
classnet
  • 4
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Make sure you haven't inadvertently set the BackColor() property of the Button to Black.
0
 
classnetAuthor Commented:
It works fine in XP...
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
I'm running Win 7 and VS 2010 and don't have any problems.  Are you compiling on an XP machine?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
classnetAuthor Commented:
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.
0
 
classnetAuthor Commented:
Found solution... changed the button BackColor from the default ActiveCaptionText to the web Transparent.

Thanks for the assist.
0
 
classnetAuthor Commented:
Found own solution
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now