WeekNumbers

Applies to

DatePicker, MonthCalendar controls

Description

Specifies whether a number displays to the left of each row of dates to indicate the number of the week in the year. For example, January 1 falls in the first week in the year, so the number 1 would display to the left of its row of data if this property is set to true.

Usage


In a painter

StepsTo set the WeekNumbers property:

  1. Select or clear the WeekNumbers check box on the Calendar page in the Properties view for DatePicker controls or the General page in the Properties view for MonthCalendar controls.


In scripts

The WeekNumbers property takes a boolean value. The default is false. These statements turn the WeekNumbers property on for a DatePicker control and a MonthCalendar control:

dp_1.WeekNumbers = true
mc_1.WeekNumbers = true