You can define a Visual Style by setting the VisualStyle property for both the C1Calendar and C1Schedule controls either in the smart designers, tasks menu, or in code. For descriptions of the available Visual Styles, see Visual Styles.
To set the VisualStyle property using the smart designers, complete the following steps:
To set the VisualStyle property using the Tasks menu, complete the following steps:
Add the following code to the Form_Load event to set the visual styles for the C1Calendar and C1Schedule controls to Office2007Black:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Calendar1.VisualStyle = C1.Win.C1Schedule.UI.VisualStyle.Office2007Black Me.C1Schedule1.VisualStyle = C1.Win.C1Schedule.UI.VisualStyle.Office2007Black |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1Calendar1.VisualStyle = C1.Win.C1Schedule.UI.VisualStyle.Office2007Black; this.c1Schedule1.VisualStyle = C1.Win.C1Schedule.UI.VisualStyle.Office2007Black; |