Dates Selection - WinForms Calendar Controls
The Calendar Controls for Windows Forms user interface design offers multiple selection options for the convenience of end users. There are two properties, EnableSelect and EnableMultiSelect, need to be true if enabling the selection of dates. The EnableSelect property is used to enable the date selections and the EnableMultiSelect property is used to enable multiple selections at one time.
Keyboard Date Navigation for WinForms Calendar
Click Navigation for WinForms Calendar
It is really easy to select a single date by clicking on the date with mouse. When the value of the property, EnableMultiSelect, is true, users could select more than one date by pressing the Ctrl and clicking each date. C# Code for Selecting Dates in Calendar
The following C# code snippet shows how to selecting a single calendar day, multiple dates and more dates in the SelectedDates collection.
You may also use the SelectedDates.AddRange() method to add an array of DateTime values:
| ![]() UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlCalendar Structure in C#Calendar Properties in C#Calendar Events in C#Calendar Getting Started Customize Appearance Appearance - StylingAppearance - TemplateAppearance - HeaderAppearance - FooterAppearance - ZoomHide WeekendsCustomize Behavior Column and Row HeaderMultiView ModeCustomize DatesCustomize NavigationSelect DatesDesign-Time SupportLocalization Culture and Region Info BasicsGlobalization PropertiesWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |