Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fill color for a command button

Status
Not open for further replies.

me83

Programmer
Aug 19, 2002
8
NL
I have a command button on a form and I want to set the color of it (I think it's called the fill color, but I'm not sure) , just like it's possible to set the color of the command button text with the "ForeColor" property.

Can anybody tell me how this works?
 
There's no option for a back color on a command button, for some reason. The workaround I use is to make a label the exact size and shape of the command button (you'll also want to make the special effect Raised, to make it look like a button), then copy and paste the code from the click event to the command button into the code for the click event of the label.
 
You could also place the command button on top of the label you created via JoyInOK suggestion in the previous post. Then set the Transparent property of the command button to true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top