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!

bgcolor for cmdbutton

Status
Not open for further replies.

Bobnz

IS-IT--Management
Aug 19, 2002
116
NZ
is it possible to give command buttons a background color?
if so how?

TIA
Bob
 
I believe you can simulate that by making the transparent property True and then placing something with the color you need underneath it, or perhaps the otherway by placing a transparent label? overtop of it with background color set.


Have a great day!

j2consulting@yahoo.com
 
The nice thing about making the button transparent and using a label behind it is you can change the color of the label using the button's event properties. I've used this for taking attendance. Once clicked, the button changes color
 
Or use a label as the button. Unattached labels expose some events you can use (for instance the on mouse down/mouse up, where you can play with the .SpecialEffect property of the label (try 2 on mousedown, 1 on mouseup) to mimick clicking a button, and the on click event for just as any button).

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top