Button Back Color change

nrego

Registered User.
Local time
Yesterday, 19:37
Joined
Jul 27, 2012
Messages
14
Is it possible that once the command button "Send Cost Request" in red is pressed it will change to green?

JrZFaA6gBegOoAXoDqAF6A6gBegOoAXoDqAF6A6gBegOoAXoDqAF6A6gBegOoAXoDqAF6A6gBf8Py1xDTJmOBVlAAAAAElFTkSuQmCC
 

Attachments

  • Cost Request Form1.JPG
    Cost Request Form1.JPG
    20.6 KB · Views: 693
You could set the color in the On Click event:

Me.Command1.BackColor = RGB(0,255,0) for green

and in the On Current event set it back to red:

Me.Command1.BackColor = RGB(255,0,0)

or test for something and set the color to red or green as needed.
 
When did Command Buttons get a Back Color Property? This property is controlled by Windows, not by apps. You can set the Fore Color, or you can use the OnClick Property of a Label or Textbox, in place of a button, and control the Back Color of either of these.

Linq ;0)>
 
Using a/c 2010 the back color can be changed and I found Billmeye solution to be workable ,perhaps this is a extra added to this version ?
 

Users who are viewing this thread

Back
Top Bottom