Customizing C1Input's Appearance / Visual Styles
Visual Styles

C1Input has seven built-in visual styles: System, Office2007Blue, Office2007Black, Office2007Silver, Office2010Blue, Office2010Black, and Office2010Silver.

Setting the VisualStyle property on a C1Input control will control the gradients and borders used to paint C1TextBox, C1Label, C1DbNavigator, C1DropDownControl, C1DateEdit (including the drop down calendar), C1NumericEdit (including the drop down calculator), C1SplitButton, C1ComboBox,C1CheckBox,C1RangeSliderand C1Button.

To customize the appearance of a C1Input control using Visual Styles, set the VisualStyle property to Custom, Office2007Black, Office2007Blue, Office2007Silver, System, Office2010Blue, Office2010Black, or Office2010Silver. This property can be set either in the designer or in code. The following table describes each of the Visual Styles:

Visual Style Description
Custom No visual style (use styles and appearance properties as usual).
Office2007Black Style matches Office2007 Black color scheme.
Office2007Blue Style matches Office2007 Blue color scheme.
Office2007Silver Style matches Office2007 Silver color scheme.
System Style matches the current system settings.
Office2010Blue Style matches Office2010 Blue color scheme.
Office2010Black Style matches Office2010 Black color scheme.
Office2010Silver Style matches Office2010 Silver color scheme.

Using the Designer

Locate the VisualStyle property in the Properties window and set it to Custom, Office2007Black, Office2007Blue, Office2007Silver, System, Office2010Blue, Office2010Black, or Office2010Silver. In this example, the VisualStyle property is set to Office2007Blue for a C1TextBox control.


visual_designer"

Using the Code Editor

Add code to the Form_Load event to set the VisualStyle property of a controlto Custom, Office2007Black, Office2007Blue, Office2007Silver, or System. The following code sets the VisualStyle property to Office2007Blue for a C1TextBox control:

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1TextBox1.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue

To write code in C#

C#
Copy Code
this.c1TextBox1.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;

Custom Visual Style

No visual style is applied.

C1TextBox custom_textbox
C1CheckBox custom-checkbox
C1Label custom-label
C1DbNavigator custom_dbnav
C1DropDownControl custom_dropdown
C1DateEdit custom-datedit
C1NumericEdit custom-numericedit
C1Button custom-c1button
C1ComboBox custom_combobox
C1RangeSlider custom-rangeslider
C1SplitButton splitbutton

System Visual Style

The current system settings.

C1TextBox
sys-textbox
C1CheckBox sys-checkbox
C1Label sys-label
C1DbNavigator sys-dbnv
C1DropDownControl sys-dropdown
C1DateEdit sys-dateedit
C1NumericEdit sys-numeric
C1Button sys-button

C1ComboBox

sys_combo
C1RangeSlider custom-rangeslider
C1SplitButton sys-splitbutton

Office2007Black Visual Style

The Office 2007 Black color scheme.

C1TextBox 2007black_textbox
C1CheckBox 2007black_checkbox
C1Label 2007black_c1label
C1DbNavigator 2007black_dbnav
C1DropDownControl 2007black_dropdown
C1DateEdit 2007black_datedit
C1NumericEdit 2007black_numericbox
C1Button 2007black_c1button

C1ComboBox

2007black_combobox
C1RangeSlider 2007black_rangeslider
C1SplitButton 2007black_c1splitbutton

Office2007Blue Visual Style

The Office 2007 Blue color scheme.

C1TextBox 2007blue-textbox
C1CheckBox 2007blue-checkbox
C1Label
C1Label
C1DbNavigator 2007blue-dbnav
C1DropDownControl /2007blue-dropdown
C1DateEdit 2007blue-datepicker
C1NumericEdit 2007blue-numeric
C1Button 2007blue-c1button
C1ComboBox 2007blue-combobox
C1RangeSlider 2007blue-rangeslider
C1SplitButton 2007blue-splitbutton

Office2007Silver Visual Style

The Office 2007 Silver color scheme.

C1TextBox silvertextbox
C1CheckBox silvercheckbox
C1Label C1LabelOffice2007Silver
C1DbNavigator silvernavigator
C1DropDownControl officedropdown
C1DateEdit silverdatedit
C1NumericEdit silvernumericeditor
C1Button silverbutton
C1ComboBox silvercombobox
C1RangeSlider silverrangeslider
C1SplitButton silversplitbutton

Office2010Blue Visual Style

The Office 2010 Blue color scheme.

C1TextBox Office2010Blue_Button
C1CheckBox Office2010Blue_CheckBox
C1Label Office2010Blue_label
C1DbNavigator Office2010Blue_DBNavigator
C1DropDownControl Office2010Blue_DropDown
C1DateEdit Office2010Blue_DateEdit
C1NumericEdit Office2010Blue_NumericEdit
C1Button Office2010Blue_Button
C1ComboBox Office2010Blue_Combobox
C1RangeSlider Office2010Blue_RangeSlider
C1SplitButton Office2010Blue_SplitButton

Office2010Black Visual Style

The Office 2010 Black color scheme.

C1TextBox Office2010Black_TextBox
C1CheckBox Office2010Black_CheckBox
C1Label c1label
C1DbNavigator Office2010Black_DBNavigator
C1DropDownControl

Office2010Black_Dropdown

C1DateEdit Office2010Black_DateEdit
C1NumericEdit Office2010Black_NumericEdit
C1Button Office2010Black_Button

C1ComboBox

Office2010Black_ComboBox
C1RangeSlider Office2010Black_Rangeslider
C1SplitButton Office2010Black_SplitButton

Office2010Silver Visual Style

The Office 2010 Silver color scheme.

C1TextBox Office2010Blue_TextBox
C1CheckBox Office2010Silver_checkbox
C1Label label

C1DbNavigator Office2010Silver_DbNavigator
C1DropDownControl Office2010Silver_dropdown
C1DateEdit Office2010Silver_DateEdit
C1NumericEdit Office2010Silver_Numeric
C1Button Office2010Silver_Button
C1ComboBox Office2010Silver_Combobox
C1RangeSlider Office2010Silver_rangeslider

C1SplitButton Office2010Silver_Splitbutton
See Also