Skip to content

DatePicker Control Members

See Also


Public Methods

  • Public Method AttachToCalendar — Associates a DatePicker Control with a Calendar Control.
  • Public Method ClearSelection — Clears all the currently selected days in the date picker.
  • Public Method Deselect — Deselects a specific day in the date picker.
  • Public Method DesiredVisibleAndFullRange — Allows scrolling between FirstDay and LastDay and attempts to show the initial visible range between FirstVisibleDay and LastVisibleDay.
  • Public Method DetachFromCalendar — Un-associates a DatePicker Control from a Calendar Control.
  • Public Method EnsureVisible — Ensures that a specific date is visible in the DatePicker.
  • Public Method EnsureVisibleFocus — Ensures that the focused item is visible.
  • Public Method EnsureVisibleSelection — Ensures that the current selection range is visible.
  • Public Method GetDayName — Gets the name of any day of the week.
  • Public Method GetMinReqRect — Retrieves the minimum size required to show a specified number of full month items in a date picker control.
  • Public Method GetMonthName — Gets the name of any month.
  • Public Method HitTest — Determines which date in the date picker is affected by the mouse pointer.
  • Public Method HitTestEx — Determines which date portion of the date picker control, if any, is at a specified position.
  • Public Method RedrawControl — Redraws the DatePicker Control.
  • Public Method ResyncCalendar — Re-syncs the data in the date picker with the calendar's data.
  • Public Method Select — Selects a specific day in the date picker control.
  • Public Method SelectRange — Sets the selection for a date picker control to a given date range (highlights the dates in the given range).
  • Public Method SetDayName — Sets the name of any day of the week.
  • Public Method SetMonthName — Sets the name of any month.
  • Public Method SetRange — Sets the minimum and maximum allowable dates for a date picker control.
  • Public Method ShowModal — Displays a Date Picker control as a modal dialog with a specific number of month rows and columns.
  • Public Method ShowModalEx — Displays a Date Picker control as a modal dialog and allows you to specify the top-left corner and the width/height.

Public Properties

  • Public Property AllowNoncontinuousSelection — Specifies whether the date picker control allows non-continuous day selection.
  • Public Property AskDayMetrics — Specifies whether to fire the AskDayMetrics event.
  • Public Property DayMetric — (See DayMetrics event) Provides a way to customize day drawing metrics before a day is displayed.
  • Public Property AutoSizeRowCol — Gets or sets the AutoSize mode.
  • Public Property BoldDaysIdleStepTime_ms — Gets/sets the time between idle steps used to update the bold state of days in the date picker (milliseconds).
  • Public Property BoldDaysOnIdle — Enables or disables retrieving the bold state of days in the date picker using a timer.
  • Public Property BoldDaysPerIdleStep — Gets/sets the total number of days whose bold status will be updated in a single idle step.
  • Public Property BoldDaysWithEvents — Gets/sets whether dates corresponding to days that contain events will be displayed in bold font.
  • Public Property BorderStyle — Gets/sets the border style around the Date Picker control.
  • Public Property ColumnCount — Gets/sets the number of columns in the months grid.
  • Public Property Enabled — Enables or disables the date picker control.
  • Public Property FirstDayOfWeek — Gets/sets the day of the week (Monday–Sunday) that is displayed in the leftmost column of the calendar.
  • Public Property FirstVisibleDay — Gets the first visible date in the date picker.
  • Public Property FirstWeekOfYearDays — Contains the current required number of year days that occur in the first week of the year.
  • Public Property HighlightToday — Enables or disables highlighting of the "Today" cell.
  • Public Property hWnd — Returns the window handle (HWND) of the Date Picker Control.
  • Public Property LastVisibleDay — Gets the last visible date in the date picker.
  • Public Property LimitMonthDaysSelection — Limits selection to days that belong to the current month (when enabled).
  • Public Property MaxSelectionCount — Gets/sets the maximum number of days that can be selected in the date picker control.
  • Public Property MonthDelta — Gets or sets the scroll rate for the date picker control.
  • Public Property MultiSelectionMode — Enables or disables the multiple selection mode for the control.
  • Public Property PaintManager — The paint manager that handles most of the drawing activities for the DatePicker control.
  • Public Property ReCreateReparented — Indicates whether the control should be recreated when reparented.
  • Public Property RightToLeft — Gets/sets a value indicating whether the Date Picker elements are aligned for right-to-left locales.
  • Public Property RowCount — Gets/sets the number of rows in the months grid.
  • Public Property Selection — Retrieves date information representing the upper and lower limits of the date range currently selected by the user.
  • Public Property ShowNoneButton — Hides or shows the Date Picker Control's "None" button.
  • Public Property ShowNonMonthDays — Shows or hides non-month days.
  • Public Property ShowTodayButton — Hides or shows the Date Picker Control's "Today" button.
  • Public Property ShowWeekNumbers — Shows or hides the week numbers for month items displayed in the Date Picker control.
  • Public Property SysYearMonthFormat — Indicates whether the year/month format should be obtained from the system settings.
  • Public Property TextNoneButton — Gets/sets the text that is displayed in the "None" button.
  • Public Property TextTodayButton — Gets/sets the text that is displayed in the "Today" button.
  • Public Property VisualTheme — Gets/sets the visual theme used to display the date picker.
  • Public Property YearsTriangle — Hides or displays the year-triangle button in the date picker caption.

Events

  • Public Event DayMetrics — Occurs before each date/day is drawn in the Date Picker. Allows the metrics to be modified before the day is displayed.
  • Public Event KeyDown — Occurs when a key is pressed and the date picker control has focus.
  • Public Event MonthChanged — Occurs when the months currently in view have changed.
  • Public Event MouseMove — Occurs when the mouse cursor is moved anywhere over the Date Picker Control.
  • Public Event ReCreated — Occurs when the Date Picker control is recreated.
  • Public Event SelectionChanged — Occurs when the selection has changed in the Date Picker Control.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.