Step 2 of 3: Customizing the Calendar
In This Topic
In this topic you will set some properties of the C1Calendar control.
- Select View | Properties Window in the Visual Studio menu.
- Click the drop-down list at the top of the Properties window and select C1Calendar.
- Set the AllowPreview property to true.
- Click the dropdown arrow next to the MinDate property and set it to 7/11/2011.
- Click the dropdown arrow next to the MaxDate property and set it to 7/18/2011.
- Set the NavButtons property to Quick. The markup for the C1Calendar control will appear like the following:
To write code in Source View
<cc1:C1Calendar ID="C1Calendar1" runat="server" AllowPreview="True"
MaxDate="2011-07-18" MinDate="2011-07-11" NavButtons="Quick">
</cc1:C1Calendar>
Now run the project to see the formatted calendar.
See Also