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

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.
    Public Event MonthChanged As System.EventHandler
    public event System.EventHandler MonthChanged
    Can be used to set some dates in the month to bold as user scrolls through the months.
    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