By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,694 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,694 IT Pros & Developers. It's quick & easy.

How to change background color on Buttons???

P: n/a
Hi:

I imagine there are hundreds of responses to this question, but i cant find any on the
site using a search.

How do you change the background color of buttons? I know there must be an easy way, but
the properties just doesn't have anything to do it.

Quick hints appreciated..

Regards

John Baker
Nov 12 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
"John Baker" <Ba******@Verizon.net> wrote in message
news:g7********************************@4ax.com...
Hi:

I imagine there are hundreds of responses to this question, but i cant find any on the site using a search.

How do you change the background color of buttons? I know there must be an easy way, but the properties just doesn't have anything to do it.


Command Buttons do not support different colors for the background.
Work-arounds involve assigning a picture property to the button that is a
colored rectangle or using a label instead of a button. You can change the
special effect during MouseDown and MouseUp so it will look (mostly) like a
button being depressed and then returning. One big difference is that a
label cannot have focus like a button can so it can't be operated from the
keyboard.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2

P: n/a
See:
http://www.lebans.com/cmdbutton.htm
CommandButton.zip is a database containing functions to allow a user
defined BackColor and Rotated Text for Command Buttons.

NEW - Jan. 26/2000 This version includes 2 functions. One for Form
Design view and one for Form View at Runtime.

1) Use API Color Dialog to select BackColor.

2) User Selectable degrees of rotation for Text in controls Caption.

3) Use in Form Design or Form View at Runtime.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"John Baker" <Ba******@Verizon.net> wrote in message
news:g7********************************@4ax.com...
Hi:

I imagine there are hundreds of responses to this question, but i cant find any on the site using a search.

How do you change the background color of buttons? I know there must be an easy way, but the properties just doesn't have anything to do it.

Quick hints appreciated..

Regards

John Baker


Nov 12 '05 #3

P: n/a
Stephen:

This sounds great, but does it have to be installed on avery system that is using the
application? The appl;icatuon I am developing will be used by a number of people, each
with their own system.

Regards

john Baker

"Stephen Lebans" <Fo****************************************@linval id.com> wrote:
See:
http://www.lebans.com/cmdbutton.htm
CommandButton.zip is a database containing functions to allow a user
defined BackColor and Rotated Text for Command Buttons.

NEW - Jan. 26/2000 This version includes 2 functions. One for Form
Design view and one for Form View at Runtime.

1) Use API Color Dialog to select BackColor.

2) User Selectable degrees of rotation for Text in controls Caption.

3) Use in Form Design or Form View at Runtime.


Nov 12 '05 #4

P: n/a
If you want to be able to give the users the ability to change colors
then yes the code would have to be included in your MDB. But there is
nothing to register, no ActiveX or DLL's. It's just a VBA function.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"John Baker" <Ba******@Verizon.net> wrote in message
news:2u********************************@4ax.com...
Stephen:

This sounds great, but does it have to be installed on avery system that is using the application? The appl;icatuon I am developing will be used by a number of people, each with their own system.

Regards

john Baker

"Stephen Lebans" <Fo****************************************@linval id.com> wrote:
See:
http://www.lebans.com/cmdbutton.htm
CommandButton.zip is a database containing functions to allow a user
defined BackColor and Rotated Text for Command Buttons.

NEW - Jan. 26/2000 This version includes 2 functions. One for Form
Design view and one for Form View at Runtime.

1) Use API Color Dialog to select BackColor.

2) User Selectable degrees of rotation for Text in controls Caption.

3) Use in Form Design or Form View at Runtime.


Nov 12 '05 #5

P: n/a
Access has nothing built-in to allow for changes in the command button
backcolor. There are some third-party tools that may help:

A shareware version of Button Painter for MS Access is available at
this web site: http://www.peterssoftware.com/bp.htm

Some simple colored button examples that can be copied into your
application are available at: http://www.peterssoftware.com/clrbtn.htm

Stephen Lebans has an example database that shows how to set a command
button back color and more: http://www.lebans.com/cmdbutton.htm

There are nice "Color Command Buttons" downloads at this site:
http://www.candace-tripp.com/access_downloads.htm

Hope this helps,

--
Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com
John Baker <Ba******@Verizon.net> wrote in message news:<g7********************************@4ax.com>. ..
Hi:

I imagine there are hundreds of responses to this question, but i cant find any on the
site using a search.

How do you change the background color of buttons? I know there must be an easy way, but
the properties just doesn't have anything to do it.

Quick hints appreciated..

Regards

John Baker

Nov 12 '05 #6

P: n/a
Thank you all for your comments and help.

This sounds like a significant oversight by Microsoft, and I am amazed that they have not
corrected it yet. Colored buttons are so very desirable, especially on applications for
unsophisticated users.

Thanks again

John Baker
Nov 12 '05 #7

P: n/a
John Baker <Ba******@Verizon.net> wrote in
news:h5********************************@4ax.com:
Thank you all for your comments and help.

This sounds like a significant oversight by Microsoft, and I am amazed
that they have not corrected it yet. Colored buttons are so very
desirable, especially on applications for unsophisticated users.


There are many things Id like MS to give me before color choice for command
buttons. (I try not to use command buttons and if I do need color, I use a
label. And I do not want my UI to be garish.)

My number one wish is a date with Reese Witherspoon.
Two would be the ability to directly modify form and other object design
through code, as one modifies a module.
--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.