BackColor - Not ?

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

This should be simple.....

The default BackColor of a button (if you look at its property) is "Control"
its a gray color, but apparently not a color.

During a process I set the BackColor of a button to another color by
using....

Me.Button.BackColor = Color.Yellow

At a later point I want to return it to its original "color"....

How do I specify "Control" as a "color" ?

You cannot do...

Me.Button.BackColor = Color.Control
or
Me.Button.BackColor = Control

Thanks !
 
Michael C said:
Easier to use this.BackColor = SystemColors.Control

I'd recommend that too. In addition it may be useful to store the old value
in a private variable (or similar) and assign its value to the property
later.
 
Back
Top