BCGControlBar Library for .NET
UseControlBarsColors Property




Gets or sets a value indicating whether to adjust visual style colors to match current Windows color theme.
Syntax
'Declaration
 
Public Property UseControlBarsColors As Boolean
'Usage
 
Dim instance As GridControl
Dim value As Boolean
 
instance.UseControlBarsColors = value
 
value = instance.UseControlBarsColors
public bool UseControlBarsColors {get; set;}
public: __property bool get_UseControlBarsColors();
public: __property void set_UseControlBarsColors( 
   bool value
);
public:
property bool UseControlBarsColors {
   bool get();
   void set (    bool value);
}
Remarks

You can set some predefined visual styles to match the grid appearance with the current appearance of your application. These visual styles are loaded from resources and the colors are hardcoded. However, Office XP, Office 2003 and VS 2005 colors depend on the current Windows color theme.

If you set this property to true,  the colors of grid will be adjusted according to the current Windows color theme every time you call SetVisualStyle or DeserializeVisualStyles.

You should set this property to false if you don't want to make your colors modified (if you provide your own visual style, for example).

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback