texasboy
asked on
Changing Text Color on a command Button
Is there a way to change the forecolor of a command button text?
.ForeColor ?
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
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
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
Dave
ASKER
Doesn't answer my question.
You have to Change the Style property of the command to Graphical and then the ForeColor property will be effective
ASKER
that only changes the back color.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.