On 11 Jun 2004 14:06:07 GMT, Susan Bricker wrote:
[color=blue]
> 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
>
> *** Sent via Devdex
http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]
There are several options.
1) You can use MSPaint to create either a picture or a color
background, and use that as the command button's 'picture' property.
2) You can use a new label, with whatever color you wish. Use the
Label's Mouse Down and Mouse Up events to change it's special effects
to Raised or Sunken. The label will have a click, so code it just as
you would a command button.
3) See http.
www.lebans.com for Stephan Lebans method.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.