[]
The C1TopicBar control carries several visual styles that can be added to the control by setting the VisualStyle property. This topic illustrates how change the visual style using the smart tag, the Properties window, and code.
Complete the following steps:
The selected visual style is applied to the control.
Complete the following steps:
The selected visual style is applied to the control.
Complete the following steps:
Navigate to the Toolbox and double-click the C1TopicBar icon.
Double-click the empty portion of the form to open Code view. Notice that a Form_Load event handler has been added to Code view.
Import the following namespace into the project:
To write code in Visual Basic
Imports C1.Win.C1Command
To write code in C#
using C1.Win.C1Command;
To set the visual style, add the following code, which sets the visual style to Office2003Olive, to the Form_Load event:
To write code in Visual Basic
c1TopicBar1.VisualStyle = VisualStyle.Office2003Olive
To write code in C#
c1TopicBar1.VisualStyle = VisualStyle.Office2003Olive;
In this topic, you learned how to change the visual style using three different methods. The result of this topic will look as follows: