ComponentOne Scheduler for WinForms
Hiding the Week Numbers
Scheduler for WinForms Task-Based Help > Hiding the Week Numbers

By default week numbers appear on the C1Calendar control to the left of the calendar dates.

To hide the week numbers at design time, set the ShowWeekNumbers property to False either in the Smart Designer, Tasks menu, Properties window, or in code.

In the Smart Designer

To hide the week numbers, set the ShowWeekNumbers property to False in the Smart Designer:

  1. On the C1Calendar Smart Designer, click the Settings button. For more information on accessing the C1Calendar Smart Designer, see C1Calendar Smart Designer.
  2. In the Settings dialog box, uncheck the Show week numbers check box.
  3. Close the dialog box.

In the Tasks Menu

To hide the week numbers, set the ShowWeekNumbers property to False in the Tasks menu:

  1. Open the C1Calendar Tasks menu. For more information on accessing the C1Calendar Tasks menu, see C1Calendar Tasks Menu.
  2. Uncheck the Show Week Numbers check box.
  3. Close the C1Calendar Tasks menu.

In the Properties Window

To hide the week numbers, locate the ShowWeekNumbers property in the C1Calendar Properties window and set it to False:

In Code

To hide the week numbers, add the following code to the Form_Load event to set the ShowWeekNumbers property to False:

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1Calendar1.ShowWeekNumbers = False

To write code in C#

C#
Copy Code
this.c1Calendar1.ShowWeekNumbers = false;

Run the program and observe:

When the ShowWeekNumbers property is set to False, the week numbers will no longer be visible: