# Quickstart

An easy, quick application in Visual Studio to get you started with DateEdit.

## Content



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

![GIF showing datedit control and its calendar dropdown](https://cdn.mescius.io/document-site-files/images/1b33a1f1-17e3-4593-a233-97e8b8ff7610/images/datedit-newdatetime-quickstart.gif)

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

### Add DateEdit control

1.  Create a **Windows Forms Application** in Visual Studio.
2.  Add **C1.Win.Calendar**, **C1.Win.Input** and **C1.Win** assemblies (dependant assemblies for DateEdit control).
3.  Drag and drop the **DateEdit** control from the Toolbox to the application.
4.  Set the DateEdit's Name property to 'dateEdit' in the Properties window using C1DateEdit class. You can also initialize the DateEdit control in the code as given below:
    
    ```csharp
    C1DateEdit dateEdit = new C1DateEdit();
    ```
    

### Configure DateEdit control

1.  Set the size and location for DateEdit control:
    
    ```csharp
    // set DateEdit size and location
    dateEdit.Size = new System.Drawing.Size(150, 20);
    dateEdit.Location = new System.Drawing.Point(330, 126);
    ```
    
2.  Set the [Value](/componentone/docs/win/online-calendar/) property to a particular date or time value using the Value property in the [C1DropDownEditorBase](/componentone/docs/win/online-calendar/) class:
    
    ```csharp
    // set the Value property to a date or time value.
    dateEdit.Value = new DateTime(2021, 01, 05);
    ```
    

### Build and Run the Project

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


> type=note
> **Note**: For .NET applications, DateEdit control is available in the C1.Win.Calendar.5 assembly, but for .NET Framework applications, DateEdit control is available in both C1.Win.Calendar.4.5.2 and C1.Win.C1Input.4.5.2 assemblies.