ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Win.C1Input Namespace / DateEditMonthCalendar Class / MonthChanged Event
Example

In This Topic
    MonthChanged Event
    In This Topic
    Handles the month change in the Dropdown calendar in C1DateEdit. Occurs when the value of the FirstMonth or LastMonth property changes.
    Syntax
    'Declaration
     
    Public Event MonthChanged As System.EventHandler
    public event System.EventHandler MonthChanged
    Remarks
    Can be used to set some dates in the month to bold as user scrolls through the months.
    Example
    This example sets a new bolded date in the selected month.
    private void c1DateEdit1_Calendar_MonthChanged(object sender, EventArgs e)
    {
       DateTime dt = c1DateEdit1.Calendar.FirstMonth;
       c1DateEdit1.Calendar.AddBoldedDate(new DateTime(dt.Year, dt.Month, dt.Month));
    }
    See Also