menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MonthCalendarAdv - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MonthCalendarAdv

    The MonthCalendarAdv extends the Windows Forms MonthCalendar control and provides several important features: Internationalization - The MonthCalendarAdv control is fully culture aware. XP Themes - The MonthCalendarAdv control supports XP themes when applicable. Multiple selection - The MonthCalendarAdv can select multiple non-consecutive dates.

    Inheritance
    System.Object
    MonthCalendarAdv
    DateTimePickerAdv.MonthCalendarForDateTimePickerAdv
    MonthCalendarExt
    Implements
    System.ComponentModel.ISupportInitialize
    INonClientPaintingSupport
    IVisualStyle
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class MonthCalendarAdv : UserControl, ISupportInitialize, INonClientPaintingSupport, ISupportCulture, IVisualStyle

    Constructors

    MonthCalendarAdv()

    Initializes a new instance of the MonthCalendarAdv class.

    Declaration
    public MonthCalendarAdv()

    Properties

    AllowMultipleSelection

    Indicates the selection types of the calendar.

    Declaration
    public bool AllowMultipleSelection { get; set; }
    Property Value
    Type
    System.Boolean

    AllowSelection

    Gets or sets the selection types of the calendar.

    Declaration
    [Obsolete("This enum has been replaced by the AllowMultipleSellection bool property")]
    public GridSelectionFlags AllowSelection { get; set; }
    Property Value
    Type
    GridSelectionFlags

    BackgroundImage

    Gets or sets the background image of the calendar.

    Declaration
    public override Image BackgroundImage { get; set; }
    Property Value
    Type
    System.Drawing.Image

    BackgroundImageLayout

    Gets or sets the background image layout of the calendar.

    Declaration
    public override ImageLayout BackgroundImageLayout { get; set; }
    Property Value
    Type
    System.Windows.Forms.ImageLayout

    Border3DStyle

    Gets or sets the 3D border style for the control.

    Declaration
    public Border3DStyle Border3DStyle { get; set; }
    Property Value
    Type
    System.Windows.Forms.Border3DStyle

    BorderColor

    Gets or sets the single border color for the control.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    BorderSides

    Gets or sets the border sides for which you want the 3D border style applied.

    Declaration
    public Border3DSide BorderSides { get; set; }
    Property Value
    Type
    System.Windows.Forms.Border3DSide

    BorderStyle

    Gets or sets the border type of the text box control.

    Declaration
    public BorderStyle BorderStyle { get; set; }
    Property Value
    Type
    System.Windows.Forms.BorderStyle

    BottomHeight

    Gets or sets the height of the bottom controls.

    Declaration
    public int BottomHeight { get; set; }
    Property Value
    Type
    System.Int32

    ClearSelectionOnNone

    Sets the Selected date to null.

    Declaration
    public bool ClearSelectionOnNone { get; set; }
    Property Value
    Type
    System.Boolean

    ContextMenu

    Gets or sets the context menu for the MonthCalendarAdv.

    Declaration
    public ContextMenu ContextMenu { get; set; }
    Property Value
    Type
    System.Windows.Forms.ContextMenu

    Culture

    Gets or sets the culture of the calendar.

    Declaration
    public CultureInfo Culture { get; set; }
    Property Value
    Type
    System.Globalization.CultureInfo

    CurrentCalendar

    Gets currently used calendar.

    Declaration
    public Calendar CurrentCalendar { get; }
    Property Value
    Type
    System.Globalization.Calendar

    CurrentSelDates

    Declaration
    protected GridRangeInfoList CurrentSelDates { get; }
    Property Value
    Type
    GridRangeInfoList

    DayNamesColor

    Gets or sets the color of the day names.

    Declaration
    public Color DayNamesColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    DayNamesFont

    Gets or sets the font of the day names.

    Declaration
    public Font DayNamesFont { get; set; }
    Property Value
    Type
    System.Drawing.Font

    DayNamesHeight

    Gets or sets the height of the day names.

    Declaration
    public int DayNamesHeight { get; set; }
    Property Value
    Type
    System.Int32

    DaysColor

    Gets or sets the color of the days.

    Declaration
    public Color DaysColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    DaysFont

    Gets or sets the font of the days.

    Declaration
    public Font DaysFont { get; set; }
    Property Value
    Type
    System.Drawing.Font

    DaysHeaderInterior

    Gets/sets the background color, gradient, etc. for the days header.

    Declaration
    public BrushInfo DaysHeaderInterior { get; set; }
    Property Value
    Type
    BrushInfo

    EnableTouchMode

    gets or sets the touchmode

    Declaration
    public virtual bool EnableTouchMode { get; set; }
    Property Value
    Type
    System.Boolean

    FirstDayOfWeek

    Gets or sets first day of week.

    Declaration
    public Day FirstDayOfWeek { get; set; }
    Property Value
    Type
    System.Windows.Forms.Day

    Font

    Overrides font property

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type
    System.Drawing.Font

    GridBackColor

    Gets or sets the backcolor of the grid.

    Declaration
    public Color GridBackColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    GridLines

    Gets or sets the style of the grid lines.

    Declaration
    public GridBorderStyle GridLines { get; set; }
    Property Value
    Type
    GridBorderStyle

    HeaderEndColor

    Gets or sets the end color of the header gradient.

    Declaration
    public Color HeaderEndColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    HeaderFont

    Gets or sets the font of the header.

    Declaration
    public Font HeaderFont { get; set; }
    Property Value
    Type
    System.Drawing.Font

    HeaderHeight

    Gets or sets the height of the header.

    Declaration
    public int HeaderHeight { get; set; }
    Property Value
    Type
    System.Int32

    HeaderImage

    Gets or sets the image of the header.

    Declaration
    public Image HeaderImage { get; set; }
    Property Value
    Type
    System.Drawing.Image

    HeaderStartColor

    Gets or sets the start color of the header gradient. Also used as backcolor.

    Declaration
    public Color HeaderStartColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    HeaderVerticalGradient

    Indicates whether the header gradient will be vertical.

    Declaration
    public bool HeaderVerticalGradient { get; set; }
    Property Value
    Type
    System.Boolean

    HeadForeColor

    Gets or sets the forecolor of the header.

    Declaration
    public Color HeadForeColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    HeadGradient

    Indicates whether the header will show a gradient background.

    Declaration
    public bool HeadGradient { get; set; }
    Property Value
    Type
    System.Boolean

    HighlightColor

    Gets or sets the color of the selected date.

    Declaration
    public Color HighlightColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    HorizontalAlignment

    Gets or sets the horizontal alignment of the grid.

    Declaration
    public GridHorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type
    GridHorizontalAlignment

    InactiveMonthColor

    Gets or sets the trailing forecolor of the calendar.

    Declaration
    public Color InactiveMonthColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    IsInitializing

    Gets is control initializing at this time.

    Declaration
    protected bool IsInitializing { get; }
    Property Value
    Type
    System.Boolean

    Iso8601CalenderFormat

    Declaration
    public bool Iso8601CalenderFormat { get; set; }
    Property Value
    Type
    System.Boolean

    LeftScrollButtonImage

    Gets or sets image for left scroll button. If this value is null then draw default button.

    Declaration
    public Image LeftScrollButtonImage { get; set; }
    Property Value
    Type
    System.Drawing.Image

    MaxValue

    Gets or sets the maximum value selectable by the calendar.

    Declaration
    public DateTime MaxValue { get; set; }
    Property Value
    Type
    System.DateTime

    MetroColor

    Declaration
    public Color MetroColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    MinValue

    Gets or sets the minimum value selectable by the calendar.

    Declaration
    public DateTime MinValue { get; set; }
    Property Value
    Type
    System.DateTime

    MonthImageList

    Gets or sets the imagelist of the popup menu.

    Declaration
    public ImageList MonthImageList { get; set; }
    Property Value
    Type
    System.Windows.Forms.ImageList

    MouseDragMultiselect

    Gets or sets mouse drag multiselect mode.

    Declaration
    public bool MouseDragMultiselect { get; set; }
    Property Value
    Type
    System.Boolean

    NoneButton

    Returns the none button at the bottom of the calendar.

    Declaration
    public MonthCalendarButton NoneButton { get; }
    Property Value
    Type
    MonthCalendarButton

    Office2007Theme

    Indicates the Office2007 theme used for drawing the control.

    Declaration
    public Office2007Theme Office2007Theme { get; set; }
    Property Value
    Type
    Office2007Theme

    Office2010Theme

    Indicates the Office2010 theme used for drawing the control.

    Declaration
    public Office2010Theme Office2010Theme { get; set; }
    Property Value
    Type
    Office2010Theme

    PopupParent

    Declaration
    public CalendarPopup PopupParent { set; }
    Property Value
    Type
    CalendarPopup

    RightScrollButtonImage

    Gets or sets image for right scroll button. If this value is null then draw default button.

    Declaration
    public Image RightScrollButtonImage { get; set; }
    Property Value
    Type
    System.Drawing.Image

    ScrollButtonSize

    Gets or sets the size of the scroll buttons.

    Declaration
    public Size ScrollButtonSize { get; set; }
    Property Value
    Type
    System.Drawing.Size

    SelectedDates

    Gets or sets the selected dates.

    Declaration
    public DateTime[] SelectedDates { get; set; }
    Property Value
    Type
    System.DateTime[]

    ShowWeekNumbers

    Indicates whether to display column with week numbers.

    Declaration
    public bool ShowWeekNumbers { get; set; }
    Property Value
    Type
    System.Boolean

    SizeToFit

    Indicates whether the calendar will adapt it`s width to fit the contents of the day names.

    Declaration
    public bool SizeToFit { get; set; }
    Property Value
    Type
    System.Boolean

    StretchScrollImage

    Indicate wether the image for scroll button is stretched or shrunk to fit the size of the scroll button.

    Declaration
    public bool StretchScrollImage { get; set; }
    Property Value
    Type
    System.Boolean

    Style

    Gets or sets the visual style for the MonthCalendarAdv.

    Declaration
    public VisualStyle Style { get; set; }
    Property Value
    Type
    VisualStyle

    ThemedBorder

    Gets or sets the draw themed border.

    Declaration
    public bool ThemedBorder { get; set; }
    Property Value
    Type
    System.Boolean

    ThemedEnabledGrid

    Indicates the themed state of the grid.

    Declaration
    public bool ThemedEnabledGrid { get; set; }
    Property Value
    Type
    System.Boolean

    ThemedEnabledScrollButtons

    Indicates the themed state of the scroll buttons.

    Declaration
    public bool ThemedEnabledScrollButtons { get; set; }
    Property Value
    Type
    System.Boolean

    TodayButton

    Returns the today button at the bottom of the calendar.

    Declaration
    public MonthCalendarButton TodayButton { get; }
    Property Value
    Type
    MonthCalendarButton

    TodayFontColor

    Gets or sets the color of the today date text in the calendar.

    Declaration
    public Color TodayFontColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    UseShortestDayNames

    Gets or sets value indicating whether the shortest name of the weekdays should be used. This property value have influence only under Framework 2.0 and higher.

    Declaration
    public bool UseShortestDayNames { get; set; }
    Property Value
    Type
    System.Boolean

    Value

    Gets or sets the current value of the calendar.

    Declaration
    public DateTime Value { get; set; }
    Property Value
    Type
    System.DateTime

    VerticalAlignment

    Gets or sets the vertical alignment of the grid.

    Declaration
    public GridVerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type
    GridVerticalAlignment

    WantEnterKey

    Gets or sets a value indicating whether the calendar control should handle Enter key to move between cells. Set this to False if Enter should be ignored instead.

    Declaration
    public bool WantEnterKey { get; set; }
    Property Value
    Type
    System.Boolean

    WeekColumnOffset

    Gets the week column offset.

    Declaration
    protected int WeekColumnOffset { get; }
    Property Value
    Type
    System.Int32

    WeekFont

    Gets or sets the font of the week numbers column.

    Declaration
    public Font WeekFont { get; set; }
    Property Value
    Type
    System.Drawing.Font

    WeekInterior

    Gets or sets the background color, gradient, etc. for the week numbers column.

    Declaration
    public BrushInfo WeekInterior { get; set; }
    Property Value
    Type
    BrushInfo

    WeekTextColor

    Gets or sets the text color for weeks column.

    Declaration
    public Color WeekTextColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    WrapText

    Indicates whether the grid should wrap text.

    Declaration
    public bool WrapText { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    ApplyScaleToControl(Single)

    applies the scaling

    Declaration
    public void ApplyScaleToControl(float sf)
    Parameters
    Type Name Description
    System.Single sf

    ArgToRadians(Int64)

    Declaration
    protected static double ArgToRadians(long arg)
    Parameters
    Type Name Description
    System.Int64 arg
    Returns
    Type
    System.Double

    ClearSelection()

    Clears selected dates.

    Declaration
    public void ClearSelection()

    CorrectCurrentSelectedCell()

    Declaration
    protected void CorrectCurrentSelectedCell()

    Dispose(Boolean)

    Cleans up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    GetInfo(Int32, Int32)

    Returns the current style for a cell.

    Declaration
    public GridStyleInfo GetInfo(int i, int j)
    Parameters
    Type Name Description
    System.Int32 i

    The row index of the cell.

    System.Int32 j

    The column index of the cell.

    Returns
    Type Description
    GridStyleInfo

    The style of the cell.

    GridFocus()

    Declaration
    protected void GridFocus()

    InitializeGrid(ref CalendarGrid)

    Initializes the grid.

    Declaration
    protected virtual void InitializeGrid(ref CalendarGrid grid)
    Parameters
    Type Name Description
    CalendarGrid grid

    The CalendarGrid.

    NonClientPaint(PaintEventArgs, Rectangle, Rectangle)

    Implement this method and draw your NonClient area using the passed in params.

    Declaration
    public IntPtr NonClientPaint(PaintEventArgs e, Rectangle displayRect, Rectangle windowRectInScreen)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    The PaintEventArgs using this to draw the nonclient area.

    System.Drawing.Rectangle displayRect

    The control's window bounds into which to draw. Left and Top are usually 0.

    System.Drawing.Rectangle windowRectInScreen

    The control's bounds in screen co-ords.

    Returns
    Type Description
    System.IntPtr

    Return a HRgn (as IntPtr) that excludes the region you just drew in the displayRect.

    OnBorder3DStyleChanged()

    Raises the Border3DStyleChanged event.

    Declaration
    protected virtual void OnBorder3DStyleChanged()

    OnBorderColorChanged()

    Raises the BorderColorChanged event.

    Declaration
    protected virtual void OnBorderColorChanged()

    OnBorderSidesChanged()

    Raises the BorderSidesChanged event.

    Declaration
    protected virtual void OnBorderSidesChanged()

    OnBorderStyleChanged()

    Raises the BorderStyleChanged event.

    Declaration
    protected virtual void OnBorderStyleChanged()

    OnDateCellQueryInfo(DateCellQueryInfoEventArgs)

    Raises the DateCellQueryInfo event.

    Declaration
    protected virtual bool OnDateCellQueryInfo(DateCellQueryInfoEventArgs args)
    Parameters
    Type Name Description
    DateCellQueryInfoEventArgs args

    The DateCellQueryInfoEventArgs instance containing the event data.

    Returns
    Type
    System.Boolean

    OnDateChanged(EventArgs)

    Raises the DateChanged event.

    Declaration
    protected void OnDateChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    OnDateSelected(EventArgs)

    Raises the DateSelected event.

    Declaration
    protected void OnDateSelected(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    OnFirstDayOfWeekChanged()

    Declaration
    protected virtual void OnFirstDayOfWeekChanged()

    OnHandleCreated(EventArgs)

    Declaration
    protected override void OnHandleCreated(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnHandleDestroyed(EventArgs)

    Declaration
    protected override void OnHandleDestroyed(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseDown(MouseEventArgs)

    Raises the MouseDown event.

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    The System.Windows.Forms.MouseEventArgs instance containing the event data.

    OnNoneButtonClick(EventArgs)

    Raises the NoneButton_Click event.

    Declaration
    protected void OnNoneButtonClick(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    OnSelectionChanged(EventArgs)

    Raises the SelectionChanged event.

    Declaration
    protected void OnSelectionChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    OnShowWeekNumbersChanged()

    Called when the numbering of the weeks have changed.

    Declaration
    protected virtual void OnShowWeekNumbersChanged()

    OnSizeChanged(EventArgs)

    Declaration
    protected override void OnSizeChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnStretchScrollImageChanged()

    Declaration
    protected virtual void OnStretchScrollImageChanged()

    OnThemedBorderChanged()

    Raises the ThemedBorderChanged event.

    Declaration
    protected virtual void OnThemedBorderChanged()

    RaiseInvalidDateSelected()

    Fires InvalidDateSelected event.

    Declaration
    protected virtual void RaiseInvalidDateSelected()

    RaiseShowWeekNumbersChanged()

    Raises the ShowWeekNumbersChanged event.

    Declaration
    protected void RaiseShowWeekNumbersChanged()

    RefreshCalendar()

    Refreshes the calendar.

    Declaration
    public void RefreshCalendar()

    RefreshCalendar(Boolean)

    Refreshes the calendar if set to true.

    Declaration
    public void RefreshCalendar(bool forceRefresh)
    Parameters
    Type Name Description
    System.Boolean forceRefresh

    if set to true refreshes the calendar.

    ResetButtonColor()

    Resets the color of the metro button backcolor

    Declaration
    protected void ResetButtonColor()

    ResetButtonForeColor()

    Resets Today and None button forecolor for metro theme

    Declaration
    protected void ResetButtonForeColor()

    ResetDayNamesColor()

    Resets the color of the day names to SystemColors.ControlText.

    Declaration
    protected void ResetDayNamesColor()

    ResetDayNamesFont()

    Resets the day names font.

    Declaration
    protected void ResetDayNamesFont()

    ResetDayNamesHeight()

    Resets DayNamesHeight property to its default value

    Declaration
    protected void ResetDayNamesHeight()

    ResetDaysColor()

    Resets the color of the days to SystemColors.ControlText.

    Declaration
    protected void ResetDaysColor()

    ResetDaysFont()

    Resets the days font to Microsoft Sans Serif.

    Declaration
    protected void ResetDaysFont()

    ResetGridBackColor()

    Resets the color of the grid background to SystemColors.Window.

    Declaration
    protected void ResetGridBackColor()

    ResetHeaderEndColor()

    Resets the end color of the header to SystemColors.ControlDark.

    Declaration
    protected void ResetHeaderEndColor()

    ResetHeaderFont()

    Resets the header font to Microsoft Sans Serif.

    Declaration
    protected void ResetHeaderFont()

    ResetHeaderForeColor()

    Resets the HeaderForeColor to SystemColors.ActiveCaptionText

    Declaration
    protected void ResetHeaderForeColor()

    ResetHeaderHeight()

    Resets HeaderHeight property to its default value

    Declaration
    protected void ResetHeaderHeight()

    ResetHeaderStartColor()

    Resets the start color of the header to SystemColors.ActiveCaption.

    Declaration
    protected void ResetHeaderStartColor()

    ResetHighlightColor()

    Resets the highlight color

    Declaration
    protected void ResetHighlightColor()

    ResetInactiveMonthColor()

    Resets the color of the inactive month to SystemColors.InactiveCaptionText.

    Declaration
    protected void ResetInactiveMonthColor()

    ResetScrollButtonSize()

    Resets the size of the scroll button to (17,19).

    Declaration
    protected void ResetScrollButtonSize()

    ResetStyle()

    Resets the style of the control to VisualStyle.Default.

    Declaration
    protected void ResetStyle()

    ResetTodayFontColor()

    Resets the color of the today font to SystemColors.ActiveCaption.

    Declaration
    protected void ResetTodayFontColor()

    SetInfo(Int32, Int32, GridStyleInfo)

    Sets the GridStyleInfo for the cell.

    Declaration
    public void SetInfo(int i, int j, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Int32 i

    The row index of the cell.

    System.Int32 j

    The column index of the cell.

    GridStyleInfo style

    The new style of the cell.

    ShouldSerializeDayNamesColor()

    Declaration
    protected bool ShouldSerializeDayNamesColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeDayNamesFont()

    Declaration
    protected bool ShouldSerializeDayNamesFont()
    Returns
    Type
    System.Boolean

    ShouldSerializeDayNamesHeight()

    Serializes DayNamesHeight property

    Declaration
    protected bool ShouldSerializeDayNamesHeight()
    Returns
    Type
    System.Boolean

    ShouldSerializeDaysColor()

    Declaration
    protected bool ShouldSerializeDaysColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeDaysFont()

    Declaration
    protected bool ShouldSerializeDaysFont()
    Returns
    Type
    System.Boolean

    ShouldSerializeGridBackColor()

    Declaration
    protected bool ShouldSerializeGridBackColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeHeaderEndColor()

    Declaration
    protected bool ShouldSerializeHeaderEndColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeHeaderFont()

    Declaration
    protected bool ShouldSerializeHeaderFont()
    Returns
    Type
    System.Boolean

    ShouldSerializeHeaderHeight()

    Serializes HeaderHeight propert

    Declaration
    protected bool ShouldSerializeHeaderHeight()
    Returns
    Type
    System.Boolean

    ShouldSerializeHeaderStartColor()

    Declaration
    protected bool ShouldSerializeHeaderStartColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeHeadForeColor()

    Declaration
    protected bool ShouldSerializeHeadForeColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeHighlightColor()

    Declaration
    protected bool ShouldSerializeHighlightColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeInactiveMonthColor()

    Declaration
    protected bool ShouldSerializeInactiveMonthColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeScrollButtonSize()

    Declaration
    protected bool ShouldSerializeScrollButtonSize()
    Returns
    Type
    System.Boolean

    ShouldSerializeTodayFontColor()

    Declaration
    protected bool ShouldSerializeTodayFontColor()
    Returns
    Type
    System.Boolean

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m

    Events

    Border3DStyleChanged

    This event is raised if the Border3DStyle property is changed.

    Declaration
    public event EventHandler Border3DStyleChanged
    Event Type
    Type
    System.EventHandler

    BorderColorChanged

    This event is raised if the BorderColor property is changed.

    Declaration
    public event EventHandler BorderColorChanged
    Event Type
    Type
    System.EventHandler

    BorderSidesChanged

    This event is raised if the BorderSides property is changed.

    Declaration
    public event EventHandler BorderSidesChanged
    Event Type
    Type
    System.EventHandler

    BorderStyleChanged

    This event is raised if the BorderStyle property is changed.

    Declaration
    public event EventHandler BorderStyleChanged
    Event Type
    Type
    System.EventHandler

    DateCellQueryInfo

    Handle this event to provide custom formatting for calendar cells.

    Declaration
    public event DateCellQueryInfoEventHandler DateCellQueryInfo
    Event Type
    Type
    DateCellQueryInfoEventHandler

    DateChanged

    Occurs when the date selected in the MonthCalendarAdv changes.

    Declaration
    public event EventHandler DateChanged
    Event Type
    Type
    System.EventHandler

    DateHover

    This event will be triggerred once mouse hover on date

    Declaration
    public event DateHoverEventHandler DateHover
    Event Type
    Type
    DateHoverEventHandler

    DateSelected

    Occurs when the user makes a date selection.

    Declaration
    public event EventHandler DateSelected
    Event Type
    Type
    System.EventHandler

    FirstDayOfWeekChanged

    Occurs when FirstDayOfWeek is changed.

    Declaration
    public event EventHandler FirstDayOfWeekChanged
    Event Type
    Type
    System.EventHandler

    NoneButtonClick

    Occurs when a NoneButton on the MonthCalendarAdv is clicked.

    Declaration
    public event EventHandler NoneButtonClick
    Event Type
    Type
    System.EventHandler

    SelectionChanged

    Occurs when the selection of date within the control has changed.

    Declaration
    public event EventHandler SelectionChanged
    Event Type
    Type
    System.EventHandler

    ShowWeekNumbersChanged

    Notifies that the numbering of the weeks have changed.

    Declaration
    public event EventHandler ShowWeekNumbersChanged
    Event Type
    Type
    System.EventHandler

    StretchScrollImageChanged

    Occurs when StretchScrollImage is changed.

    Declaration
    public event EventHandler StretchScrollImageChanged
    Event Type
    Type
    System.EventHandler

    ThemedBorderChanged

    This event is raised if the ThemedBorder property is changed.

    Declaration
    public event EventHandler ThemedBorderChanged
    Event Type
    Type
    System.EventHandler

    Explicit Interface Implementations

    IVisualStyle.VisualTheme

    Declaration
    string IVisualStyle.VisualTheme { get; set; }
    Returns
    Type
    System.String

    Implements

    System.ComponentModel.ISupportInitialize
    INonClientPaintingSupport
    IVisualStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved