Can the Caption on a Command Button be shown in colour..?...If so, how is it done....Thanks
Printable View
Can the Caption on a Command Button be shown in colour..?...If so, how is it done....Thanks
No..not on the regular button but you can get around it
by using a checkbox and setting it's style to graphical or 1. This turns it into a command button with forecolor properties.
Let's say command button looking.
Use the Button shipped with Sheridan 3D Controls. It has the ability to change the Forecolor.
with a checkbox you need to uncheck it to stop the "button" sticking down!
Code:
Private Sub Check1_Click()
Check1.Value = Unchecked
'rest of code in here
End Sub
Just thought I,d pass this on.
vbthunder has a good module for changing the text colour of a CommandButton. I've tried it out and it works fine.
Go to http://www.vbthunder.com/source/button/ExtButton.htm
GRAHAM ;)
It would be easier to just use Megatron's suggestion or add Microsoft Forms 2.0 Object Library. Similarly to Sheridan controls it has a command button with forecolor property