property Button.BackColor as Color
Specifies the control's background color.

 TypeDescription 
   Color A color expression that indicates the control's background color.   
Use the BorderWidth and BorderHeight properties to specify the control's border. The BackColor property doesn't affect the skin used unless it contains transparent areas. The BackColor property is automatically changed when the BackColor property of the container is changed. The UseTransparency property specifies whether the control supports transparency. The transparent regions in the control's skin indicates the transparency of the button. Change the BackColor property after changing the container's BackColor property if you want to choose a different background color for your control. Use the ForeColor property to change the control's foreground color. Use the Picture property to display a picture on the control's background. As BackColor property, the Picture property doesn't affect the opaque areas in the current skin. The following sample changes the control's background color:

Please notice that the background color doesn't affect the button's face ( skin ). Use the Skin property to change the button's skin.


Send comments on this topic.
© 1999-2007 Exontrol Inc, Software. All rights reserved.