Auto Format Dialog Box (Calendar Control)
The Auto Format dialog box enables you to select a predefined set of colors, border styles, and other settings (which are collectively referred to as a scheme) and apply them to a Calendar Web server control.
Note: |
|---|
You can also specify the appearance of a Calendar control by using themes. For details, see ASP.NET Themes and Skins. |
When you select a scheme, the scheme's settings are applied to properties of the control. Different schemes make different settings, but a typical set of properties that are set by a scheme is as follows:
BackColor
BorderColor
BorderStyle
BorderWidth
CellPadding
Font.Name, Font.Size
ForeColor
Gridlines
NextPrevFormat
Width
In some schemes, settings are also made for the style objects that are associated with the control. For example, a scheme might set the BackColor property of the TodayDayStyle object.
You can edit the settings after applying a scheme.
To open the Auto Format dialog box
In Visual Web Developer, open or create an ASP.NET Web page and then switch to Design view.
From the Standard node of the Toolbox drag a Calendar control onto the page.
Right-click the Calendar control and then click Show Smart Tag.
In the Calendar Tasks list, click Auto Format.
The Auto Format dialog box opens.
Note: