In This Topic
This quick start gets you started with the CalendarView and the DateEdit control by letting you create a WinForms application, add CalendarView and DateEdit controls to it, and input a date from CalendarView into DateEdit.
Note that the quick start binds CalendarView to DateEdit to input a date. However, you can input a date into DateEdit directly from DateEdit's calendar pop-up.
To quickly get started using the controls, follow these steps:
- Add the CalendarView and the DateEdit control to the application
- Customize the Calendarview and the DateEdit control
- Input date from CalendarView into DateEdit
The following image shows the DateEdit contol displaying today's date selected from the CalendarView control.
Step 1: Add the CalendarView and the DateEdit control to the application
- Create a Windows Forms Application in Visual Studio.
- Drag and drop the C1CalendarView control from the Toolbox to the application.
- Drag and drop the C1DateEdit control from the Toolbox to the application.
Step 2: Customize the CalendarView and the DateEdit control
- Switch to the code view.
- Add the following code to customize CalendarView and DateEdit with respect to location, size, and back color.
Back to Top
Step 3: Input date from CalendarView into DateEdit
Add the following code to pop up CalendarView by clicking into DateEdit, and then select and input a date from CalendarView into the DateEdit control.
Back to Top
See Also