Visual Basic: Show a range of dates in a MonthCalendar control

Platform:Visual Basic
Task:Show a range of dates in a MonthCalendar control
Discussion:
To show a multi-day event on a MonthCalendar control.
Example:
    Private Sub UpdateCalendar(ByVal BeginDate As Date, ByVal EndDate As Date)
        Dim EventDateRange As New SelectionRange(BeginDate, EndDate)
        Me.MonthCalendar1.SelectionRange = EventDateRange
    End Sub
Back to Index