> Susan Bricker <sb****@att.net> wrote in message news:<40*********************@news.newsgroups.ws>. ..
Is there a way to change the background color of command buttons? I
know that I saw some VBA code somewhere that showed how to do this. I
think it involved making the button transparent and then creating a box
the same size and making it have a color for the background. Although,
I can't visualize the logic or how to kick off the 'click' event with
this overlay sitution. Ok ... I am rambling.
Does anyone have the answer to this one? Thanks much.
Sue
Sue,
I always create a label with the background color, font, and
caption I want to see. Then I put a transparent button over top of
the label. Make is exactly the same size as the label. You cannot
see the command button but when you click on it, it works like any
other button. (It looks like you are clicking the pretty label )
I usually give the label a solid black border and use the
"raised" effect to help it look more like the button it is pretending
to be.
In design mode, the button will look like a see-through
rectangle. Drag it over top of the label and make your you use "Bring
to Front" under "Format" so the transparent button ends up on top.
Hank Reed