Click to See Complete Forum and Search --> : Change the color of a button's text
Cblalock
March 27th, 2001, 02:27 PM
How do I change the color of the button's text. There is not foreground color to set. So I have tried to change the button's MaskColor property. Then I set the UseMaskColor property to true. And the color of the button's text still remains black. I need it to be white. There has to be a simple solution to this and I am just not seeing it. So if anyone could help me.
Iouri
March 27th, 2001, 02:32 PM
Change Style to Graphical and then change the background color
Iouri Boutchkine
iouri@hotsheet.com
Cblalock
March 27th, 2001, 02:52 PM
I forgot to mention that in my first post. I have the Style set to Graphical. This allowed me to change the background color of the button. But I still cannot change the color of the text on the button. Should changing the style to Graphical allow me to change the color of the text on the button. So far no matter what I have tried the text color is always black.
Cubbie
March 27th, 2001, 03:01 PM
Don't think that changing the caption forecolor is intrinsic to that command button. Try adding the the Sheridan 3D controls (threed32.ocx) to your project. You can change the forecolor of the Sheridan command button.
Iouri
March 27th, 2001, 03:07 PM
Put textbox over command button caption. Set the backolor of the text box to the color of the command button, set borders to None. Change the ForeColor of the Text box.
If you use this, don't forget to add
Private Sub Text1_Click()
Command1_Click
End Sub
It will fire click event of the Command1 button when you click on the text box
Iouri Boutchkine
iouri@hotsheet.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.