Changing Text Color on a command Button

Is there a way to change the forecolor of a command button text?
texasboyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
halschConnect With a Mentor Commented:
Hey Tex...
Using "Paint", Create a BMP file the same size as the Cmd button, with the background color the same as the Cmd button BackColor property and type your text(MS San Serif 8 pt) in the desired color. Save the BMP.
Set the "Picture" property of the Cmd button to point to the BMP file you just created.

It's not fancy, but it does work.
Hal
0
 
mark2150Commented:
.ForeColor ?


0
 
mark2150Commented:
Hmmm, son-of-a-gun, spoke too soon.

Just checked, the Help says that there should be a .ForeColor property but it doesn't show on the Properties list and generates an error when set programmatically. Looked under the fonts and I can set Bold, Italic, underlined, but no color.

There is a MaskColor and such, but that doesn't effect the text color. Looks like you'ld have to use an API call (if there is one).

Reject me!

M

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
dgb001Commented:
Could you use an SSCommand button instead, or use the other Microsoft one (part of Microsoft Forms Controls 2 - or something like that) - I think you should be able to set forecolor on both of those, though each has several different properties. Just a suggestion.
Dave

0
 
texasboyAuthor Commented:
Doesn't answer my question.
0
 
eyaltilCommented:
You have to Change the Style property of the command to Graphical and then the ForeColor property will be effective
0
 
texasboyAuthor Commented:
that only changes the back color.
0
All Courses

From novice to tech pro — start learning today.