Access Command Buttons

T

teelee

Can you tell me if it is possible to change the color of a command button in
forms. Also how do you download some new styles for the forms?
 
A

Adrian Tofan

is not really possible to chnage the color background color for a
CommandButton so you'll need to use some workarounds:
a) set Transparent to yes and place a coloured box behind the button.
b) use formated Labels + OnClick event.

if you gonna use B), don't forget - labels don't get Focus, so you can miss
some Afterupdate or On Exit events for certain controls, if you click on
that Label after changing their values.
 
M

Michel Walsh

Hi,

You cannot change the color of just one button, since they are colored
accordingly to the user selection, system wide.

If you want a cheap alternative, you can try to use a label with some
"border effect" to simulate the button. The BackColor property can be used
to have some "color". If the application has to be used "at large",
preferable to leave and use the user selection: some people are blind color
or have problem with some mix of color: they take time to "specify" the
color they want in their settings, and are happy when an application respect
their choice, rather than imposing its own "artistic" taste. Sure, if it is
just for you, then, that is another matter, completely.



Hoping it may help,
Vanderghast, Access MVP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top