O'Reilly logo

C# Primer: A Practical Approach by Stanley B. Lippman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.17. Adding a Calendar Control

The Calendar control is the most visually elegant of the Web Forms controls. The SelectionMode property can be set in one of four modes:

  1. None: The user can page through the Calendar by month but cannot make a selection.

  2. Day: The user can page through and select any day of the Calendar by month.

  3. DayWeek: The user can page through the Calendar by month. The user can either click on an individual day or select a week by clicking on an arrow placed in the leftmost column of the week.

  4. DayWeekMonth: The same as DayWeek, except that the user can also select the entire month by clicking on the double array in the leftmost column of the row holding the days of the week.

Clicking on a day, a week arrow, or a month double arrow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required