ComponentOne ComboBox for ASP.NET: ComboBox for ASP.NET AJAX Task-Based Help > Using Built-in Visual Styles

Using Built-in Visual Styles

You can format C1ComboBox with one of five built-in visual styles. Note that you can also use your own style; see Adding Custom Visual Styles for more information.

Changing the Visual Style Using the Smart Tag

You can change the style of C1ComboBox at design time using the C1ComboBox Tasks menu.

1.   Click the C1ComboBox smart tag to open the C1ComboBox Tasks menu.

2.   Click drop-down arrow next to VisualStyle.

3.   Select one of the built-in styles listed. The style is applied to the C1ComboBox control.

Changing the Visual Style Programmatically

To change the style of C1ComboBox programmatically, use the following code. In this example, "Vista" is used, but you can replace it with any of the built-in styles (ArcticFox, Office2007Black, Office2007Blue, Office2007Silver, or Vista) or use your own style.

      Visual Basic

C1ComboBox1.VisualStyle = "Vista"

      C#

C1ComboBox1.VisualStyle = "Vista";


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.