Changing the Back Color of a Command Button.

  • Thread starter Thread starter Satadru Sengupta
  • Start date Start date
S

Satadru Sengupta

Friends,
Could you please assist me as to how I can change the back color of any
Command Button. [I do not wish to use labels in place of Command Button(s)
please]

Any pointers in respect of API or VBA code would be useful.

Your help and assistance is solicited and is precious to me.
Sincerely yours,
Satadru.
 
Make the command button transparent and overlay it over a label. You can
then change the backcolor of the label. Altrnatively, use a label; it has a
click event.
 
Satadru said:
Could you please assist me as to how I can change the back color of any
Command Button. [I do not wish to use labels in place of Command Button(s)
please]

Any pointers in respect of API or VBA code would be useful.


API's are a long way around to avoid using a label or text
box, but look around at www.lebans.com for a way to do it.
 
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.



Version 1.1

Now supports ToggleButton controls as well as CommandButton controls.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top