Skip to main content

CalendarControlBase Members

The base class for controls that incorporate calendars.

Constructors

Name Description
CalendarControlBase() Initializes a new instance of the CalendarControlBase class.

Properties

Name Description
AccessibilityObject Gets the AccessibleObject assigned to the control. Inherited from Control.
AccessibleDefaultActionDescription Gets or sets the default action description of the control for use by accessibility client applications. Inherited from Control.
AccessibleDescription Gets or sets the description of the control used by accessibility client applications. Inherited from Control.
AccessibleName Gets or sets the name of the control used by accessibility client applications. Inherited from Control.
AccessibleRole Gets or sets the accessible role of the control. Inherited from Control.
AllowAnimatedContentChange Gets or sets whether animation effects are applied when switching between calendar views.
AllowClickInactiveDays Gets or sets whether a click on an inactive date (see CalendarControlBase.InactiveDaysVisibility) navigates to the corresponding (previous or next) month.
AllowDrop Gets or sets a value indicating whether the control can accept data that the user drags onto it. Inherited from Control.
AllowHtmlTextInToolTip Gets or sets whether HTML formatting is allowed in the control’s regular tooltips. Inherited from BaseControl.
Anchor Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. Inherited from Control.
Appearance Gets the appearance settings used to paint the control’s contents. Inherited from BaseStyleControl.
AppearanceCalendar Obsolete. This property is obsolete. Use the CalendarControlBase.CalendarAppearance property instead.
AppearanceDisabledCalendarDate Obsolete. This property is obsolete. Use the CalendarControlBase.CalendarAppearance property instead.
AppearanceHeader Obsolete. This property is obsolete. Use the CalendarControlBase.CalendarAppearance property instead.
AppearanceWeekNumber Obsolete. This property is obsolete. Use the CalendarControlBase.CalendarAppearance property instead.
AutoScrollOffset Gets or sets where this control is scrolled to in ScrollControlIntoView(Control). Inherited from Control.
AutoSize Gets or sets whether the calendar automatically adjusts its size depending on the calendar display mode.
AutoSizeInLayoutControl

When a control is added to a LayoutControl, this property specifies whether the control’s width is changed to display its content in its entirety. This member is supported by individual descendant of the BaseControl class.

Inherited from BaseControl.
BackColor This member is not supported by the class.
BackgroundImage This member is not supported by the class.
BackgroundImageLayout This member is not supported by the class.
BindingContext Gets or sets the BindingContext for the control. Inherited from Control.
BorderStyle Gets or sets the control’s border style. Inherited from BaseControl.
Bottom Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container’s client area. Inherited from Control.
Bounds Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. Inherited from Control.
ButtonsStyle Gets or sets the style of buttons within this control.
CalendarAppearance Contains appearance settings used to paint the Calendar’s elements and date cells in various states. When a Skin is active, only day cell-related appearance settings are in effect.
CalendarDateEditing Gets or sets whether an end-user can select a date in the calendar. Disable this setting to allow end-users to enter only the time portions of date-time values (see CalendarControlBase.CalendarTimeEditing).
CalendarHorizontalIndent Gets or sets the horizontal indent between adjacent months, in pixels.
CalendarIndent Gets or sets the vertical and horizontal indent between adjacent months, in pixels.
CalendarTimeEditing Gets or sets whether an end-user can edit the time portion of a date value via the calendar. This functionality is supported in the CalendarView.Vista and CalendarView.Classic display modes.
CalendarTimeProperties Contains settings related to time editing within the calendar.
CalendarVerticalIndent Gets or sets the vertical indent between adjacent months, in pixels.
CalendarView Gets or sets the calendar display mode.
CanClosePopup Returns whether or not this CalendarControlBase object’s popup can be closed at the moment.
CanEnableIme protected Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support. Inherited from Control.
CanFocus Gets a value indicating whether the control can receive focus. Inherited from Control.
CanRaiseEvents protected Determines if events can be raised on the control. Inherited from Control.
CanSelect Gets a value indicating whether the control can be selected. Inherited from Control.
Capture Gets or sets a value indicating whether the control has captured the mouse. Inherited from Control.
CaseMonthNames Gets or sets the text case of month names.
CaseWeekDayAbbreviations Gets or sets the text case of days of the week abbreviations.
CausesValidation Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. Inherited from Control.
CellPadding Gets or sets the amount of space in pixels between a cell’s borders and its content (text).
CellSize Gets or sets calendar cell size.
CellStyleProvider Gets or sets the ICalendarCellStyleProvider object that allows you to customize the appearance of certain dates.
CheckForIllegalCrossThreadCalls static Gets or sets a value indicating whether to catch calls on the wrong thread that access a control’s Handle property when an application is being debugged. Inherited from Control.
ClientRectangle Gets the rectangle that represents the client area of the control. Inherited from Control.
ClientSize Gets or sets the height and width of the client area of the control. Inherited from Control.
ColumnCount Gets or sets the number of months displayed horizontally.
CompanyName Gets the name of the company or creator of the application containing the control. Inherited from Control.
Container Gets the IContainer that contains the Component. Inherited from Component.
ContainsFocus Gets a value indicating whether the control, or one of its child controls, currently has the input focus. Inherited from Control.
ContextButtonOptions Provides access to the settings applied to context buttons displayed in calendar cells.
ContextButtons Provides access to the collection of context buttons displayed in each calendar cell.
ContextMenu Gets or sets the shortcut menu associated with the control. Inherited from Control.
ContextMenuStrip Gets or sets the ContextMenuStrip associated with this control. Inherited from Control.
Controls Gets the collection of controls contained within the control. Inherited from Control.
Converter This member supports the internal infrastructure, and is not intended to be used directly from your code.
Created Gets a value indicating whether the control has been created. Inherited from Control.
Cursor Gets or sets the cursor that is displayed when the mouse pointer is over the ControlBase control. Inherited from ControlBase.
DataBindings Gets the data bindings for the control. Inherited from Control.
DateFormat This member supports the internal infrastructure, and is not intended to be used directly from your code.
DateTime Gets or sets the edit value (current date). This value is in sync with the CalendarControlBase.EditValue property.
DefaultBackColor static Gets the default background color of the control. Inherited from Control.
DefaultCursor protected Gets or sets the default cursor for the control. Inherited from Control.
DefaultFont static Gets the default font of the control. Inherited from Control.
DefaultForeColor static Gets the default foreground color of the control. Inherited from Control.
DefaultImeMode protected Gets the default Input Method Editor (IME) mode supported by the control. Inherited from Control.
DefaultMargin protected Gets the space, in pixels, that is specified by default between controls. Inherited from Control.
DefaultMaximumSize protected Gets the length and height, in pixels, that is specified as the default maximum size of a control. Inherited from Control.
DefaultMinimumSize protected Gets the length and height, in pixels, that is specified as the default minimum size of a control. Inherited from Control.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
DisabledDateProvider Allows you to assign an ICalendarDisabledDateProvider object that can disable certain dates to prevent them from being selected by an end-user.
DisplayRectangle Gets the rectangle that represents the display area of the control. Inherited from Control.
Disposing Gets a value indicating whether the base Control class is in the process of disposing. Inherited from Control.
Dock Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. Inherited from Control.
DoubleBuffered protected Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker. Inherited from Control.
DrawCellLines Gets or sets whether to draw lines between calendar cells.
EditValue Gets or sets the edit value (current date).
Enabled Gets or sets a value indicating whether the control can respond to user interaction. Inherited from Control.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
FirstDayOfWeek Gets or sets the first day of the week.
Focused Gets a value indicating whether the control has input focus. Inherited from Control.
Font This member is not supported by the class.
FontHeight protected Gets or sets the height of the font of the control. Inherited from Control.
ForeColor This member is not supported by the class.
FullButtonsHeight Obsolete. This member supports the internal infrastructure, and is not intended to be used directly from your code.
Handle Gets the window handle that the control is bound to. Inherited from Control.
HasChildren Gets a value indicating whether the control contains one or more child controls. Inherited from Control.
HeaderPadding Gets or sets the amount of space around the calendar header displaying the current month and year. This property is in effect for the Classic calendar view.
Height Gets or sets the height of the control. Inherited from Control.
HighlightHolidays Gets or sets whether Saturdays and Sundays are highlighted. You can customize the appearance of these days using the CalendarControlBase.CalendarAppearance property.
HighlightSelection Gets or sets whether the selection is highlighted.
HighlightTodayCell Gets or sets whether Today’s date is highlighted.
HighlightTodayCellWhenSelected Gets or sets how the cell that displays today date should be painted upon selection. You may choose between the ‘Today cell’ and ‘selected cell’ highlight styles.
HotDate Gets the hot-tracked date.
ImeMode Gets or sets the Input Method Editor (IME) mode of the control. Inherited from Control.
ImeModeBase protected Gets or sets the IME mode of a control. Inherited from Control.
InactiveDaysVisibility Gets or sets the visibility of dates that do not belong to the current month.
InvokeRequired Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on. Inherited from Control.
IsAccessible Gets or sets a value indicating whether the control is visible to accessibility applications. Inherited from Control.
IsDateCleared This member supports the internal infrastructure, and is not intended to be used directly from your code.
IsDesignMode Gets a value indicating whether the control is currently in design mode. Inherited from BaseControl.
IsDisposed Gets a value indicating whether the control has been disposed of. Inherited from Control.
IsDrawing Get or sets whether the control is being drawn. For internal use.
IsHandleCreated Gets a value indicating whether the control has a handle associated with it. Inherited from Control.
IsLoading Gets whether the control is being initialized. Inherited from BaseControl.
IsMirrored Gets a value indicating whether the control is mirrored. Inherited from Control.
IsRightToLeft Gets whether the ControlBase‘s visual elements are actually aligned to support locales using right-to-left fonts. Inherited from ControlBase.
LayoutEngine Gets a cached instance of the control’s layout engine. Inherited from Control.
Left Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container’s client area. Inherited from Control.
Location Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. Inherited from Control.
LookAndFeel Provides access to the object containing the control’s look and feel settings. Inherited from BaseControl.
Margin Gets or sets the space between controls. Inherited from Control.
MaximumSize Gets or sets the size that is the upper limit that GetPreferredSize(Size) can specify. Inherited from Control.
MaxValue Gets or sets the maximum date displayed by the calendar.
MinimumSize Gets or sets the size that is the lower limit that GetPreferredSize(Size) can specify. Inherited from Control.
MinValue Gets or sets the minimum date displayed by the calendar.
ModifierKeys static Gets a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state. Inherited from Control.
MonthHeaderPadding Gets or sets the padding around month names when several months are displayed simultaneously.
MouseButtons static Gets a value indicating which of the mouse buttons is in a pressed state. Inherited from Control.
MousePosition static Gets the position of the mouse cursor in screen coordinates. Inherited from Control.
Multiselect Obsolete. This property is obsolete. Use the CalendarControlBase.SelectionMode property instead.
Name Gets or sets the name of the control. Inherited from Control.
NullDate Gets or sets the date assigned to the CalendarControlBase.DateTime property when the Clear button is clicked, or when the CalendarControlBase.EditValue property is set to null or any value that cannot be converted to the DateTime type.
Padding Gets or sets padding within the control. Inherited from Control.
Parent Gets or sets the parent container of the control. Inherited from Control.
PreferredSize Gets the size of a rectangular area into which the control can fit. Inherited from Control.
ProductName Gets the product name of the assembly containing the control. Inherited from Control.
ProductVersion Gets the version of the assembly containing the control. Inherited from Control.
PropagatingImeMode protected static Gets an object that represents a propagating IME mode. Inherited from Control.
ReadOnly Gets or sets whether the Calendar is read-only, and thus an end-user is not able to change the date selection (CalendarControlBase.SelectedRanges) and edit value (CalendarControlBase.EditValue/CalendarControlBase.DateTime).
RecreatingHandle Gets a value indicating whether the control is currently re-creating its handle. Inherited from Control.
Region Gets or sets the window region associated with the control. Inherited from Control.
RenderRightToLeft protected This property is now obsolete. Inherited from Control.
ResizeRedraw protected Gets or sets a value indicating whether the control redraws itself when resized. Inherited from Control.
Right Gets the distance, in pixels, between the right edge of the control and the left edge of its container’s client area. Inherited from Control.
RightToLeft Gets or sets a value indicating whether control’s elements are aligned to support locales using right-to-left fonts. Inherited from Control.
RightToLeftLayout Gets or sets whether the control’s visual elements are aligned to support locales using right-to-left fonts.
RowCount Gets or sets the number of months displayed vertically.
ScaleChildren protected Gets a value that determines the scaling of child controls. Inherited from Control.
ScaleFactor Returns scale multipliers that are currently applied to a control’s original width and height. Inherited from BaseControl.
SelectedRanges

Gets or sets the selected date ranges (DateRange objects). Each DateRange object identifies dates that are EQUAL OR GREATER THAN the DateRange.StartDate and LESS THAN the DateRange.EndDate. Thus the last date is excluded from the range.

Selection Obsolete. This property is obsolete. Use the CalendarControlBase.SelectedRanges property instead.
SelectionBehavior Gets or sets whether calendar date ranges are selected strictly from day to day being clicked, or through the entire weeks containing those days.
SelectionEnd Gets the ending date of the selection. The SelectionEnd date is excluded from the selection.
SelectionMode Gets or sets whether a single date, or multiple dates can be simultaneously selected.
SelectionStart Gets the first date of the selection.
ShowCancelButton Gets whether the Cancel button is displayed.
ShowClearButton Gets or sets the visibility of the Clear button, which clears the current selection, sets the CalendarControlBase.EditValue property to null and the CalendarControlBase.DateTime property to the CalendarControlBase.NullDate value.
ShowFocusCues protected Gets a value indicating whether the control should display focus rectangles. Inherited from Control.
ShowFooter Gets or sets whether the calendar footer is displayed.
ShowHeader Gets or sets whether the calendar header is displayed.
ShowKeyboardCues protected Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. Inherited from Control.
ShowMonthHeaders Gets or sets the visibility of month names for each month.
ShowMonthNavigationButtons Gets or sets the visibility of buttons that let you navigate between months.
ShowOkButton Gets whether the OK button is displayed.
ShowTodayButton Gets or sets the visibility of the Today button.
ShowToolTips Gets or sets whether a tooltip should be displayed when the mouse pointer is over the control. Inherited from BaseControl.
ShowWeekNumbers Gets or sets whether to display week numbers in the calendar.
ShowYearNavigationButtons Gets or sets the visibility of buttons that let you navigate between years.
Site Gets or sets the site of the control. Inherited from Control.
Size Gets or sets the height and width of the control. Inherited from Control.
SpecialDateProvider Allows you to assign an ICalendarSpecialDateProvider object that can mark certain dates as “special” to highlight them in a custom manner, as specified by the dedicated appearance settings of the CalendarControlBase.CalendarAppearance object.
StartDate This member supports the internal infrastructure, and is not intended to be used directly from your code.
StyleController Gets or sets the style controller component that provides style settings for this control. Inherited from BaseControl.
SuperTip Gets or sets a SuperToolTip for the current control. Inherited from BaseControl.
SyncSelectionWithEditValue Gets or sets whether changing the CalendarControlBase.DateTime/CalendarControlBase.EditValue property updates the current selection.
TabIndex Gets or sets the tab order of the control within its container. Inherited from Control.
TabStop Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. Inherited from Control.
Tag Gets or sets the object that contains data about the control. Inherited from Control.
Text This member supports the internal infrastructure, and is not intended to be used directly from your code. This property is not relevant for this class.
TimeEdit This member supports the internal infrastructure, and is not intended to be used directly from your code.
TimeEditWidth Gets or sets the width, in pixels, of the edit box that allows end-users to edit the time portion of the edit value.
TodayDate Gets or sets the date that is regarded as Today’s date.
TodayDayCellFrameColor Obsolete. Gets or sets the border color of the Today cell.
ToolTip Gets or sets a regular tooltip’s text content. Inherited from BaseControl.
ToolTipAnchor This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from BaseControl.
ToolTipController Gets or sets the tooltip controller component that controls the appearance, position and content of hints displayed for this control. Inherited from BaseControl.
ToolTipIconType Gets or sets the type of the tooltip icon. Inherited from BaseControl.
ToolTipTitle Gets or sets a regular tooltip’s title. Inherited from BaseControl.
Top Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container’s client area. Inherited from Control.
TopLevelControl Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in. Inherited from Control.
UpdateDateTimeWhenNavigating Gets or sets whether the same day (as in the current month) is selected in another month when you navigate from the current month to that month.
UpdateSelectionWhenNavigating Gets or sets whether the same range of days (as in the current month) is automatically selected in another month when you navigate from the current month to that month. The CalendarControlBase.SyncSelectionWithEditValue property must be set to false to support this feature.
UseDirectXPaint Gets or sets whether the DirectX Hardware Acceleration is enabled for the Calendar Control.
UseWaitCursor Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. Inherited from Control.
View Gets or sets the current date grouping View. This member supports the internal infrastructure, and is not intended to be used directly from your code.
Visible Gets or sets a value indicating whether the control and all its child controls are displayed. Inherited from Control.
VistaCalendarViewStyle Gets or sets which date grouping Views are available in Vista display mode.
WeekDayAbbreviationLength Gets or sets the length of days of the week abbreviations.
WeekNumberRule Gets or sets a rule which determines the first week of the year.
Width Gets or sets the width of the control. Inherited from Control.
WindowTarget This property is not relevant for this class. Inherited from Control.

Methods

Name Description
AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) protected Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control . Inherited from Control.
AccessibilityNotifyClients(AccessibleEvents, Int32) protected Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control. Inherited from Control.
AddSelection(DateRange) Adds the specified date range to the selection.
AddSelection(DateTime, DateTime) Adds the specified date range to the selection.
AddSelection(DateTime) Adds the specified date to the selection.
BeginInvoke(Delegate, Object[]) Executes the specified delegate asynchronously with the specified arguments, on the thread that the control’s underlying handle was created on. Inherited from Control.
BeginInvoke(Delegate) Executes the specified delegate asynchronously on the thread that the control’s underlying handle was created on. Inherited from Control.
BeginUpdate()
BringToFront() Brings the control to the front of the z-order. Inherited from Control.
CalcBestSize() Calculates the minimum size sufficient to fit the content. Inherited from BaseControl.
CancelUpdate()
ClearPreferredSizeCache(Control) static Clears the value of the size of a rectangular area, into which the specified control can fit, from the program cache. Inherited from ControlBase.
Contains(Control) Retrieves a value indicating whether the specified control is a child of the control. Inherited from Control.
CreateControl() Forces the creation of the visible control, including the creation of the handle and any visible child controls. Inherited from Control.
CreateControlsInstance() protected Creates a new instance of the control collection for the control. Inherited from Control.
CreateGraphics() Creates the Graphics for the control. Inherited from Control.
CreateHandle() protected Creates a handle for the control. Inherited from Control.
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
DefWndProc(Message) protected Sends the specified message to the default window procedure. Inherited from Control.
DestroyHandle() protected Destroys the handle associated with the control. Inherited from Control.
Dispose() Releases all resources used by the Component. Inherited from Component.
DoDragDrop(Object, DragDropEffects) Begins a drag-and-drop operation. Inherited from Control.
DrawToBitmap(Bitmap, Rectangle) Supports rendering to the specified bitmap. Inherited from Control.
EndInvoke(IAsyncResult) Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. Inherited from Control.
EndUpdate()
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindForm() Retrieves the form that the control is on. Inherited from Control.
Focus() Sets input focus to the control. Inherited from Control.
FromChildHandle(IntPtr) static Retrieves the control that contains the specified handle. Inherited from Control.
FromHandle(IntPtr) static Returns the control that is currently associated with the specified handle. Inherited from Control.
GetAccessible() Returns an object which implements the accessibility information. Inherited from BaseControl.
GetAutoSizeMode() protected Retrieves a value indicating how a control will behave when its AutoSize property is enabled. Inherited from Control.
GetCanProcessMnemonic(Control) static Returns the value of the control’s CanProcessMnemonic property, if this property exists. Inherited from ControlBase.
GetChildAtPoint(Point, GetChildAtPointSkip) Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. Inherited from Control.
GetChildAtPoint(Point) Retrieves the child control that is located at the specified coordinates. Inherited from Control.
GetContainerControl() Returns the next ContainerControl up the control’s chain of parent controls. Inherited from Control.
GetEndDate() Returns the last date of the last month currently displayed in the calendar.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetHitInfo(Point) Obtains information on the calendar control’s element located at the specified point.
GetHitInfo(MouseEventArgs) Retrieves information on the calendar control element located at a specific point.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetNextControl(Control, Boolean) Retrieves the next control forward or back in the tab order of child controls. Inherited from Control.
GetPreferredCulture() static Returns the culture information used to display culture-specific data in the calendar.
GetPreferredSize(Size) Retrieves the size of a rectangular area into which the control can be fitted.
GetScaledBounds(Rectangle, SizeF, BoundsSpecified) protected Retrieves the bounds within which the control is scaled. Inherited from Control.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetStartDate() Returns the first date of the first month currently displayed in the calendar.
GetStyle(ControlStyles) protected Retrieves the value of the specified control style bit for the control. Inherited from Control.
GetTopLevel() protected Determines if the control is a top-level control. Inherited from Control.
GetType() Gets the Type of the current instance. Inherited from Object.
GetUnvalidatedControl(Control) static This member supports the internal infrastructure and is not intended to be used directly from your code. Inherited from ControlBase.
GetValidationCanceled(Control) static Returns the ValidationCancelled property value of a control, if this property exists. Inherited from ControlBase.
GetValidationCanceledSource(Control) static Returns the parent container of the specified control that canceled validation. Inherited from ControlBase.
GetViewInfo() Returns the object which contains the internal information used to render the control. Inherited from BaseControl.
Hide() Conceals the control from the user. Inherited from Control.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
InitLayout() protected Called after the control has been added to another container. Inherited from Control.
Invalidate() Invalidates the entire surface of the control and causes the control to be redrawn. Inherited from Control.
Invalidate(Boolean) Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. Inherited from Control.
Invalidate(Rectangle, Boolean) Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. Inherited from Control.
Invalidate(Rectangle) Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Inherited from Control.
Invalidate(Region, Boolean) Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. Inherited from Control.
Invalidate(Region) Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Inherited from Control.
Invoke(Delegate, Object[]) Executes the specified delegate, on the thread that owns the control’s underlying window handle, with the specified list of arguments. Inherited from Control.
Invoke(Delegate) Executes the specified delegate on the thread that owns the control’s underlying window handle. Inherited from Control.
InvokeGotFocus(Control, EventArgs) protected Raises the GotFocus event for the specified control. Inherited from Control.
InvokeLostFocus(Control, EventArgs) protected Raises the LostFocus event for the specified control. Inherited from Control.
InvokeOnClick(Control, EventArgs) protected Raises the Click event for the specified control. Inherited from Control.
InvokePaint(Control, PaintEventArgs) protected Raises the Paint event for the specified control. Inherited from Control.
InvokePaintBackground(Control, PaintEventArgs) protected Raises the PaintBackground event for the specified control. Inherited from Control.
IsInputChar(Char) protected Determines if a character is an input character that the control recognizes. Inherited from Control.
IsInputKey(Keys) protected Determines whether the specified key is a regular input key or a special key that requires preprocessing. Inherited from Control.
IsKeyLocked(Keys) static Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect. Inherited from Control.
IsMnemonic(Char, String) static Determines if the specified character is the mnemonic character assigned to the control in the specified string. Inherited from Control.
IsUnvalidatedControlIsParent(Control) static This member supports the internal infrastructure and is not intended to be used directly from your code. Inherited from ControlBase.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
NotifyInvalidate(Rectangle) protected Raises the Invalidated event with a specified region of the control to invalidate. Inherited from Control.
OnBackColorChanged(EventArgs) protected Raises the BackColorChanged event. Inherited from Control.
OnBackgroundImageChanged(EventArgs) protected Raises the BackgroundImageChanged event. Inherited from Control.
OnBackgroundImageLayoutChanged(EventArgs) protected Raises the BackgroundImageLayoutChanged event. Inherited from Control.
OnBindingContextChanged(EventArgs) protected Raises the BindingContextChanged event. Inherited from Control.
OnCausesValidationChanged(EventArgs) protected Raises the CausesValidationChanged event. Inherited from Control.
OnChangeUICues(UICuesEventArgs) protected Raises the ChangeUICues event. Inherited from Control.
OnClick(EventArgs) protected Raises the Click event. Inherited from Control.
OnClientSizeChanged(EventArgs) protected Raises the ClientSizeChanged event. Inherited from Control.
OnContextMenuChanged(EventArgs) protected Raises the ContextMenuChanged event. Inherited from Control.
OnContextMenuStripChanged(EventArgs) protected Raises the ContextMenuStripChanged event. Inherited from Control.
OnControlAdded(ControlEventArgs) protected Raises the ControlAdded event. Inherited from Control.
OnControlRemoved(ControlEventArgs) protected Raises the ControlRemoved event. Inherited from Control.
OnCreateControl() protected Raises the CreateControl() method. Inherited from Control.
OnCursorChanged(EventArgs) protected Raises the CursorChanged event. Inherited from Control.
OnDockChanged(EventArgs) protected Raises the DockChanged event. Inherited from Control.
OnDragDrop(DragEventArgs) protected Raises the DragDrop event. Inherited from Control.
OnDragEnter(DragEventArgs) protected Raises the DragEnter event. Inherited from Control.
OnDragLeave(EventArgs) protected Raises the DragLeave event. Inherited from Control.
OnDragOver(DragEventArgs) protected Raises the DragOver event. Inherited from Control.
OnEnabledChanged(EventArgs) protected Raises the EnabledChanged event. Inherited from Control.
OnEnter(EventArgs) protected Raises the Enter event. Inherited from Control.
OnFontChanged(EventArgs) protected Raises the FontChanged event. Inherited from Control.
OnForeColorChanged(EventArgs) protected Raises the ForeColorChanged event. Inherited from Control.
OnGiveFeedback(GiveFeedbackEventArgs) protected Raises the GiveFeedback event. Inherited from Control.
OnGotFocus(EventArgs) protected Raises the GotFocus event. Inherited from Control.
OnHelpRequested(HelpEventArgs) protected Raises the HelpRequested event. Inherited from Control.
OnImeModeChanged(EventArgs) protected Raises the ImeModeChanged event. Inherited from Control.
OnInvalidated(InvalidateEventArgs) protected Raises the Invalidated event. Inherited from Control.
OnKeyPress(KeyPressEventArgs) protected Raises the KeyPress event. Inherited from Control.
OnKeyUp(KeyEventArgs) protected Raises the KeyUp event. Inherited from Control.
OnLayout(LayoutEventArgs) protected Raises the Layout event. Inherited from Control.
OnLeave(EventArgs) protected Raises the Leave event. Inherited from Control.
OnLocationChanged(EventArgs) protected Raises the LocationChanged event. Inherited from Control.
OnLostFocus(EventArgs) protected Raises the LostFocus event. Inherited from Control.
OnMarginChanged(EventArgs) protected Raises the MarginChanged event. Inherited from Control.
OnMouseCaptureChanged(EventArgs) protected Raises the MouseCaptureChanged event. Inherited from Control.
OnMouseClick(MouseEventArgs) protected Raises the MouseClick event. Inherited from Control.
OnMouseDoubleClick(MouseEventArgs) protected Raises the MouseDoubleClick event. Inherited from Control.
OnMouseHover(EventArgs) protected Raises the MouseHover event. Inherited from Control.
OnMouseWheel(MouseEventArgs) protected Raises the MouseWheel event. Inherited from Control.
OnMove(EventArgs) protected Raises the Move event. Inherited from Control.
OnNotifyMessage(Message) protected Notifies the control of Windows messages. Inherited from Control.
OnParentBackColorChanged(EventArgs) protected Raises the BackColorChanged event when the BackColor property value of the control’s container changes. Inherited from Control.
OnParentBackgroundImageChanged(EventArgs) protected Raises the BackgroundImageChanged event when the BackgroundImage property value of the control’s container changes. Inherited from Control.
OnParentBindingContextChanged(EventArgs) protected Raises the BindingContextChanged event when the BindingContext property value of the control’s container changes. Inherited from Control.
OnParentCursorChanged(EventArgs) protected Raises the CursorChanged event. Inherited from Control.
OnParentEnabledChanged(EventArgs) protected Raises the EnabledChanged event when the Enabled property value of the control’s container changes. Inherited from Control.
OnParentFontChanged(EventArgs) protected Raises the FontChanged event when the Font property value of the control’s container changes. Inherited from Control.
OnParentForeColorChanged(EventArgs) protected Raises the ForeColorChanged event when the ForeColor property value of the control’s container changes. Inherited from Control.
OnParentRightToLeftChanged(EventArgs) protected Raises the RightToLeftChanged event when the RightToLeft property value of the control’s container changes. Inherited from Control.
OnParentVisibleChanged(EventArgs) protected Raises the VisibleChanged event when the Visible property value of the control’s container changes. Inherited from Control.
OnPreviewKeyDown(PreviewKeyDownEventArgs) protected Raises the PreviewKeyDown event. Inherited from Control.
OnPrint(PaintEventArgs) protected Raises the Paint event. Inherited from Control.
OnQueryContinueDrag(QueryContinueDragEventArgs) protected Raises the QueryContinueDrag event. Inherited from Control.
OnRegionChanged(EventArgs) protected Raises the RegionChanged event. Inherited from Control.
OnSizeChanged(EventArgs) protected Raises the SizeChanged event. Inherited from Control.
OnStyleChanged(EventArgs) protected Raises the StyleChanged event. Inherited from Control.
OnSystemColorsChanged(EventArgs) protected Raises the SystemColorsChanged event. Inherited from Control.
OnTabIndexChanged(EventArgs) protected Raises the TabIndexChanged event. Inherited from Control.
OnTabStopChanged(EventArgs) protected Raises the TabStopChanged event. Inherited from Control.
OnTextChanged(EventArgs) protected Raises the TextChanged event. Inherited from Control.
OnValidated(EventArgs) protected Raises the Validated event. Inherited from Control.
OnValidating(CancelEventArgs) protected Raises the Validating event. Inherited from Control.
OnVisibleChanged(EventArgs) protected Raises the VisibleChanged event. Inherited from Control.
PerformLayout() Forces the control to apply layout logic to all its child controls. Inherited from Control.
PerformLayout(Control, String) Forces the control to apply layout logic to all its child controls. Inherited from Control.
PerformValidation(Control, Boolean) static Returns if the ControlBase validates its value before the user may proceed. Inherited from ControlBase.
PointToClient(Point) Computes the location of the specified screen point into client coordinates. Inherited from Control.
PointToScreen(Point) Computes the location of the specified client point into screen coordinates. Inherited from Control.
PreProcessControlMessage(Message) Preprocesses keyboard or input messages within the message loop before they are dispatched. Inherited from Control.
PreProcessMessage(Message) Preprocesses keyboard or input messages within the message loop before they are dispatched. Inherited from Control.
ProcessCmdKey(Message, Keys) protected Processes a command key. Inherited from Control.
ProcessDialogChar(Char) protected Processes a dialog character. Inherited from Control.
ProcessKeyDown(KeyEventArgs) Called when a key is pressed.
ProcessKeyEventArgs(Message) protected Processes a key message and generates the appropriate control events. Inherited from Control.
ProcessKeyMessage(Message) protected Processes a keyboard message. Inherited from Control.
ProcessKeyPreview(Message) protected Previews a keyboard message. Inherited from Control.
ProcessMnemonic(Char) protected Processes a mnemonic character. Inherited from Control.
RaiseDragEvent(Object, DragEventArgs) protected Raises the appropriate drag event. Inherited from Control.
RaiseKeyEvent(Object, KeyEventArgs) protected Raises the appropriate key event. Inherited from Control.
RaiseMouseEvent(Object, MouseEventArgs) protected Raises the appropriate mouse event. Inherited from Control.
RaisePaintEvent(Object, PaintEventArgs) protected Raises the appropriate paint event. Inherited from Control.
RecreateHandle() protected Forces the re-creation of the handle for the control. Inherited from Control.
RectangleToClient(Rectangle) Computes the size and location of the specified screen rectangle in client coordinates. Inherited from Control.
RectangleToScreen(Rectangle) Computes the size and location of the specified client rectangle in screen coordinates. Inherited from Control.
Redraw(Rectangle) This member supports the internal infrastructure, and is not intended to be used directly from your code.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ReflectMessage(IntPtr, Message) protected static Reflects the specified message to the control that is bound to the specified handle. Inherited from Control.
Refresh() Forces the control to invalidate its client area and immediately redraw itself and any child controls. Inherited from BaseControl.
ResetBackColor() Resets the BaseStyleControl.BackColor property back to its default value. Inherited from BaseStyleControl.
ResetBindings() Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. Inherited from Control.
ResetCursor() Resets the Cursor property to its default value. Inherited from Control.
ResetFont() Resets the Font property to its default value. Inherited from Control.
ResetForeColor() Resets the BaseStyleControl.ForeColor property to its default value. Inherited from BaseStyleControl.
ResetHandler() Nullifies the object that handles the control events.
ResetImeMode() Resets the ImeMode property to its default value. Inherited from Control.
ResetMouseEventArgs() protected Resets the control to handle the MouseLeave event. Inherited from Control.
ResetPainter() Resets the painter associated with this BaseStyleControl to its default state. Inherited from BaseStyleControl.
ResetRightToLeft() Resets the RightToLeft property to its default value. Inherited from Control.
ResetSuperTip() Removes the SuperToolTip object that has been assigned to the current control. Inherited from BaseControl.
ResetText() Resets the Text property to its default value (Empty). Inherited from Control.
ResetValidationCanceled(Control) static Resets the control’s ValidationCancelled property. This method supports the internal infrastructure and is not intended to be used directly from your code. Inherited from ControlBase.
ResetViewInfo() Resets the View Info object associated with this BaseStyleControl. Inherited from BaseStyleControl.
ResumeLayout() Resumes usual layout logic. Inherited from Control.
ResumeLayout(Boolean) Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. Inherited from Control.
RtlTranslateAlignment(ContentAlignment) protected Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. Inherited from Control.
RtlTranslateAlignment(HorizontalAlignment) protected Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. Inherited from Control.
RtlTranslateAlignment(LeftRightAlignment) protected Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. Inherited from Control.
RtlTranslateContent(ContentAlignment) protected Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. Inherited from Control.
RtlTranslateHorizontal(HorizontalAlignment) protected Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. Inherited from Control.
RtlTranslateLeftRight(LeftRightAlignment) protected Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. Inherited from Control.
Scale(SizeF) Scales the control and all child controls by the specified scaling factor. Inherited from Control.
Scale(Single, Single) Scales the entire control and any child controls. Inherited from Control.
Scale(Single) Scales the control and any child controls. Inherited from Control.
ScaleCore(Single, Single) protected This method is not relevant for this class. Inherited from Control.
Select() Activates the control. Inherited from Control.
Select(Boolean, Boolean) protected Activates a child control. Optionally specifies the direction in the tab order to select the control from. Inherited from Control.
SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) Activates the next control. Inherited from Control.
SendToBack() Sends the control to the back of the z-order. Inherited from Control.
SetAutoSizeMode(AutoSizeMode) protected Sets a value indicating how a control will behave when its AutoSize property is enabled. Inherited from Control.
SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) Sets the specified bounds of the control to the specified location and size. Inherited from Control.
SetBounds(Int32, Int32, Int32, Int32) Sets the bounds of the control to the specified location and size. Inherited from Control.
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) protected Performs the work of setting the specified bounds of this control. Inherited from Control.
SetClientSizeCore(Int32, Int32) protected Sets the size of the client area of the control. Inherited from Control.
SetSelection(DateRange) Clears the selection and sets the selection to the specified date range.
SetSelection(DateTime, DateTime) Clears the selection and sets the selection to the specified date range.
SetSelection(DateTime) Clears the selection and sets the selection to the specified date.
SetStyle(ControlStyles, Boolean) protected Sets a specified ControlStyles flag to either true or false. Inherited from Control.
SetTopLevel(Boolean) protected Sets the control as the top-level control. Inherited from Control.
SetVisibleCore(Boolean) protected Sets the control to the specified visible state. Inherited from Control.
Show() Displays the control to the user. Inherited from Control.
SizeFromClientSize(Size) protected Determines the size of the entire control from the height and width of its client area. Inherited from Control.
SuspendLayout() Temporarily suspends the layout logic for the control. Inherited from Control.
IDropTarget.OnDragDrop(DragEventArgs) Raises the DragDrop event. Inherited from Control.
IDropTarget.OnDragEnter(DragEventArgs) Raises the DragEnter event. Inherited from Control.
IDropTarget.OnDragLeave(EventArgs) Raises the DragLeave event. Inherited from Control.
IDropTarget.OnDragOver(DragEventArgs) Raises the DragOver event. Inherited from Control.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.
Update() Causes the control to redraw the invalidated regions within its client area. Inherited from Control.
UpdateBounds() protected Updates the bounds of the control with the current size and location. Inherited from Control.
UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) protected Updates the bounds of the control with the specified size, location, and client size. Inherited from Control.
UpdateBounds(Int32, Int32, Int32, Int32) protected Updates the bounds of the control with the specified size and location. Inherited from Control.
UpdateStyles() protected Forces the assigned styles to be reapplied to the control. Inherited from Control.
UpdateZOrder() protected Updates the control in its parent’s z-order. Inherited from Control.

Events

Name Description
AutoSizeChanged This event is not relevant for this class. Inherited from Control.
BackColorChanged This event is not supported by the BaseStyleControl class. Inherited from BaseStyleControl.
BackgroundImageChanged Occurs when the value of the BackgroundImage property changes. Inherited from Control.
BackgroundImageLayoutChanged Occurs when the BackgroundImageLayout property changes. Inherited from Control.
BindingContextChanged Occurs when the value of the BindingContext property changes. Inherited from Control.
CausesValidationChanged Occurs when the value of the CausesValidation property changes. Inherited from Control.
ChangeUICues Occurs when the focus or keyboard user interface (UI) cues change. Inherited from Control.
Click Occurs when the control is clicked. Inherited from Control.
ClientSizeChanged Occurs when the value of the ClientSize property changes. Inherited from Control.
ContextButtonClick Allows you to respond to a context button click.
ContextButtonCustomize Allows you to customize context buttons in certain calendar cells.
ContextButtonValueChanged Fires when the CheckContextButton.Checked, TrackBarContextButton.Value or RatingContextButton.Rating property value changes.
ContextMenuChanged Occurs when the value of the ContextMenu property changes. Inherited from Control.
ContextMenuStripChanged Occurs when the value of the ContextMenuStrip property changes. Inherited from Control.
ControlAdded Occurs when a new control is added to the Control.ControlCollection. Inherited from Control.
ControlRemoved Occurs when a control is removed from the Control.ControlCollection. Inherited from Control.
CursorChanged Occurs when the value of the Cursor property changes. Inherited from Control.
CustomContextButtonToolTip Allows you to specify a tooltip shown when the mouse pointer hovers over a context button. This event is only raised for RatingContextButton and TrackBarContextButton objects.
CustomDrawDayNumberCell Occurs when drawing each day cell in the calendar.
CustomWeekDayAbbreviation Allows you to provide custom week day abbreviations.
CustomWeekNumber Allows week numbers to be customized.
DateTimeChanged Fires when the CalendarControlBase.DateTime property value changes.
DateTimeCommit Fires when the CalendarControlBase.DateTime property value changes as a result of actions performed by an end-user.
DisableCalendarDate Allows you to disable certain dates to prevent them from being selected by an end-user.
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DockChanged Occurs when the value of the Dock property changes. Inherited from Control.
DoubleClick Occurs when the control is double-clicked. Inherited from Control.
DragDrop Occurs when a drag-and-drop operation is completed. Inherited from Control.
DragEnter Occurs when an object is dragged into the control’s bounds. Inherited from Control.
DragLeave Occurs when an object is dragged out of the control’s bounds. Inherited from Control.
DragOver Occurs when an object is dragged over the control’s bounds. Inherited from Control.
EditDateModified Obsolete. This member supports the internal infrastructure, and is not intended to be used directly from your code.
EditValueChanged Fires when the CalendarControlBase.EditValue property value changes.
EnabledChanged Occurs when the Enabled property value has changed. Inherited from Control.
Enter Occurs when the control is entered. Inherited from Control.
FontChanged This event is not supported by the BaseStyleControl class. Inherited from BaseStyleControl.
ForeColorChanged This event is not supported by the BaseStyleControl class. Inherited from BaseStyleControl.
FormatEditValue Allows you to convert the EditValue to the DateTime format.
GiveFeedback Occurs during a drag operation. Inherited from Control.
GotFocus Occurs when the control receives focus. Inherited from Control.
HandleCreated Occurs when a handle is created for the control. Inherited from Control.
HandleDestroyed Occurs when the control’s handle is in the process of being destroyed. Inherited from Control.
HelpRequested Occurs when the user requests help for a control. Inherited from Control.
ImeModeChanged Occurs when the ImeMode property has changed. Inherited from Control.
Invalidated Occurs when a control’s display requires redrawing. Inherited from Control.
KeyDown Occurs when a key is pressed while the control has focus. Inherited from Control.
KeyPress Occurs when a character. space or backspace key is pressed while the control has focus. Inherited from Control.
KeyUp Occurs when a key is released while the control has focus. Inherited from Control.
Layout Occurs when a control should reposition its child controls. Inherited from Control.
Leave Occurs when the input focus leaves the control. Inherited from Control.
LocationChanged Occurs when the Location property value has changed. Inherited from Control.
LostFocus Occurs when the control loses focus. Inherited from Control.
MarginChanged Occurs when the control’s margin changes. Inherited from Control.
MouseCaptureChanged Occurs when the control loses mouse capture. Inherited from Control.
MouseClick Occurs when the control is clicked by the mouse. Inherited from Control.
MouseDoubleClick Occurs when the control is double clicked by the mouse. Inherited from Control.
MouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed. Inherited from Control.
MouseEnter Occurs when the mouse pointer enters the control. Inherited from Control.
MouseHover Occurs when the mouse pointer rests on the control. Inherited from Control.
MouseLeave Occurs when the mouse pointer leaves the control. Inherited from Control.
MouseMove Occurs when the mouse pointer is moved over the control. Inherited from Control.
MouseUp Occurs when the mouse pointer is over the control and a mouse button is released. Inherited from Control.
MouseWheel Occurs when the mouse wheel moves while the control has focus. Inherited from Control.
Move Occurs when the control is moved. Inherited from Control.
PaddingChanged Occurs when the control’s padding changes. Inherited from Control.
Paint Occurs when the control is redrawn. Inherited from Control.
PaintEx A DirectX-compatible event that replaces the standard Control.Paint event.
ParentChanged Occurs when the Parent property value changes. Inherited from Control.
ParseEditValue Allows you to parse a new value that is about to be assigned to the CalendarControlBase.EditValue property.
PreviewKeyDown Occurs before the KeyDown event when a key is pressed while focus is on this control. Inherited from Control.
QueryAccessibilityHelp Occurs when AccessibleObject is providing help to accessibility applications. Inherited from Control.
QueryContinueDrag Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Inherited from Control.
RegionChanged Occurs when the value of the Region property changes. Inherited from Control.
Resize Occurs when the control is resized. Inherited from Control.
RightToLeftChanged Occurs when the RightToLeft property value changes. Inherited from Control.
SelectionChanged Fires when the selection changes.
SizeChanged Occurs when the Size property value changes. Inherited from Control.
SpecialCalendarDate Allows you to mark certain dates as “special” dates. These dates will be painted using the dedicated settings provided by the CalendarControlBase.CalendarAppearance object.
StyleChanged Occurs when the control style changes. Inherited from Control.
SystemColorsChanged Occurs when the system colors change. Inherited from Control.
TabIndexChanged Occurs when the TabIndex property value changes. Inherited from Control.
TabStopChanged Occurs when the TabStop property value changes. Inherited from Control.
TextChanged Occurs when the Text property value changes. Inherited from Control.
Validated Occurs when the control is finished validating. Inherited from Control.
Validating Occurs when the control is validating. Inherited from Control.
VisibleChanged Occurs when the Visible property value changes. Inherited from Control.
See Also