---
title: "MonthCalendar Control in C#.Net"  
description: "A MonthCalendar control allows to selecting a date at the run time.  How to use MonthCalendar Control  Drag and drop MonthCalendar Control and Label"  
author: "Pushpendra Singh"  
published: 2011-01-24  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/408/monthcalendar-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# MonthCalendar Control in C#.Net

A MonthCalendar control allows to selecting a date at the run time.\

**How to use MonthCalendar Control\** Drag and drop MonthCalendar Control and Label from the toolbox on the window Form.

![MonthCalendar Control in C#.Net](https://www.mindstick.com/mindstickarticle/72c7f8c2-60ec-4b8d-adde-c4423baf108d/images/e0d60ca8-fbc3-4d0e-9311-7f20bed76fff.png)

## Code:

## Write code in DateChanged event

![MonthCalendar Control in C#.Net](https://www.mindstick.com/mindstickarticle/72c7f8c2-60ec-4b8d-adde-c4423baf108d/images/1830b229-2041-4e7b-8898-a6140d555063.png)

Double click on DateChanged event and assign the value of month date in label

```
private void monthCalendar1_DateChanged(object sender,  DateRangeEventArgs e){            //show the selected in Label         label1.Text = monthCalendar1.SelectionStart.ToLongDateString();   }
```

**Properties:**

**SelectionRange -** Determines the selected range of dates for a month calendar control.

**SelectionStart -** Determines the start date of the selected range of dates.

**ToLongtDateString();** will show date in long format

## Run the project

![MonthCalendar Control in C#.Net](https://www.mindstick.com/mindstickarticle/72c7f8c2-60ec-4b8d-adde-c4423baf108d/images/f9e75569-112c-4001-86c2-7ec5ee6e97eb.png)

When you select the date in the calendar then the DateChanged event will fire and the selected date will show in the Label.

![MonthCalendar Control in C#.Net](https://www.mindstick.com/mindstickarticle/72c7f8c2-60ec-4b8d-adde-c4423baf108d/images/75870789-303e-4941-b232-d6d42515c1d1.png)

## Properties of MonthCalendar Control

**FirstDayOfWeek:** The Default value is Sunday. It means week starts with Sunday as the first day and Saturday as last. You can set the first day of the week depending upon your choice by selecting from the predefined list with this property.

**ShowTodayCircle:** The Default value is set to true which displays a circle on the current date. The Setting, it to False will make the circle disappear.

**ShowWeekNumber:** The Default is False. Because setting it to True will display the week number of the current week in the 52 week year. It will be displayed towards the left side of the control.

**ShowToday:** The Default value is set to true which displays the current date at the bottom of the Calendar. When set it to False will hide the current date.

## Example:

```
private void frmMonthCalendar_Load(object sender,  EventArgs e){            //Hide current date in side calendar            monthCalendar1.ShowToday = false;}
```

![MonthCalendar Control in C#.Net](https://www.mindstick.com/mindstickarticle/72c7f8c2-60ec-4b8d-adde-c4423baf108d/images/5a227e4e-9f60-4b75-96b0-519b426ffe0b.png)

\

You should read this Article - **[Using ReportViewer in WinForms C#](https://www.mindstick.com/Articles/408/monthcalendar-control-in-c-sharp-dot-net)**

---

Original Source: https://www.mindstick.com/articles/408/monthcalendar-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
