# QuickStart

Read the topic to know more about DateEdit control for WinForms.

## Content



This quick start gets you started with the CalendarView control by letting you create a WinForms application, add CalendarView control to it, and set a specific date in CalendarView.

![](https://cdn.mescius.io/document-site-files/images/1b33a1f1-17e3-4593-a233-97e8b8ff7610/images/calendarview-quickstart.png)

To quickly get started using the control, follow these steps:

### Add CalendarView control

1.  Create a **Windows Forms App** in Visual Studio.
2.  Add the following assemblies (dependant assemblies for CalendarView control):
    *   C1.Win.Calendar
    *   C1.Win.Input
    *   C1.Win
3.  Drag and drop the **CalendarView** control from the Toolbox to the form.
4.  Set the **Name** property of CalendarView control to 'calendarView' by navigating to the **Properties** window. Alternatively, you can also initialize the CalendarView control via the code editor as given below:
    
    ```csharp
    C1CalendarView calendarView = new C1CalendarView();
    ```
    

### Configure CalendarView control

1.  Set the location for CalendarView control using the **Location** property:
    
    ```csharp
    // Set CalendarView location
    calendarView.Location = new System.Drawing.Point(300, 152);
    ```
    
2.  Use the BoldedDates property and set it to a [DateTime](https://docs.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) array, to make the four consecutive days after the current day as bold.
    
    ```csharp
    calendarView.BoldedDates = new DateTime[]
       {
           DateTime.Today.AddDays(1),
           DateTime.Today.AddDays(2),
           DateTime.Today.AddDays(3),
           DateTime.Today.AddDays(4)
        };
    ```
    
    <br />Set a background color for the CalendarView control:
    
    ```csharp
    // Set Background color
    calendarView.BackColor = Color.Beige;
    ```
    

### Build and Run the Project

1.  Click **Build | Build Solution** to build the project.
2.  Press **F5** to run the project.