Click to See Complete Forum and Search --> : Colored command buttons
Glenn
Jan 24th, 2000, 01:08 AM
I know it is possible to change the background color of command button by using the graphical style of button. However there is no easy way to set to color of the button text. I have a requirement for a button with a black background with white text. I'm sure I can do this with a 3rd party control. But I'd much rather do this with standard VB controls and the API.
[This message has been edited by Glenn (edited 01-24-2000).]
You can't. MS again messed up and forgot to add this little "Oversite".
I use Labels to do what I want my command buttons to do.
Bottom line, switch to labels or put a picture in the command button. It's the only way, unless you want to literally replace the Users' COLOR system, then you would need the API calls for the system colors.
Knight Vision
[This message has been edited by Knight_Vision (edited 01-24-2000).]
Glenn
Jan 24th, 2000, 01:45 AM
Thanks for the idea. I'll give it a try.
Al Smith
Jan 24th, 2000, 01:46 AM
Hi,
Another trick is to use an option button which you can make act like a command button.
Set the style to graphical and you can set the fore and back colors.
This is the suggestion posted most on this site regarding this question.
Al.
------------------
A computer is a tool, not a toy.
<A HREF="mailto:asmith3914@aol.com
asmith@spxateg.com">asmith3914@aol.com
asmith@spxateg.com</A>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.