We help IT Professionals succeed at work.

Command Button Forecolor

1Robin1
1Robin1 asked
on
This may seem like a very basic question, but one that has me puzzled. How do you change the font COLOR on a command button in Visual Basic forms?
Comment
Watch Question

Forecolor property
if that doesn't work, then select forms 2 components , set it to graphical, and then you will be able to set the forecoor

regards,

Commented:
Actually, the text on a command button is not controlled through a property, only the background is.

To change the color of the button do the following:

1) Right-click on your desktop and select properties.
2) When the "Display Properties" window appears, click on the "Appearance" tab.
3) In the middle of the window is an image of a command button labeled "OK".  Click on that button and notice that the "Item" dropdown changes to "3D Objects"
4) to the right you'll see two selector boxes labeled "Color".  Select the bottom one and pick the desired color from the list.
5) Click the "Apply" button to verify that this is the color you want (and notice how many other things in Windows that it changes.)
6) To accept this, click the [OK] button next to the [Cancel]; to reject this, select the original color them repeat this step.

Author

Commented:
to cybermoonlight - there is not a forecolor for command buttons and setting it to graphical only changes the background
Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
My mistake..It just seemed logical that there would be such a property..
zzzZZZZ
hehe

Regards,
IT Operations
CERTIFIED EXPERT
Commented:

Author

Commented:
I guess this is as good as it gets. Microsoft really messed up this one cause if I have a screen with a dark background and white text then my command buttons are black text, doesn't look very good. And this is extreme just to set the text. Thank you though.

Commented:
That may be true, Robin, but Microsoft took the approach that the users should be able to define their own color schemes, and developers who try to override that are doing so at their own risk.   It's just MS bully us around again!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.