method Schedule.FitSelToView ()
Fits the selected dates to the current view.

TypeDescription
The FitSelToView method restores the view to fit the selected dates. Use the Selection/SelectDate property to change programmatically the dates being selected in the calendar, including the dates to be shown in the schedule view. You can use the Selection/SelCount/SelDate property to retrieve the selected dates. The ClipToSel property indicates whether the control clips the schedule panel to view the selected dates only.

The following sample shows how you can ensure that the schedule view fits the selected dates, when exCalendarAutoHide option is used on OnResizeControl property

Private Sub LayoutEndChanging(ByVal Operation As EXSCHEDULELibCtl.LayoutChangingEnum)
    If (Operation = exLayoutCalendarAutoHide) Then
        Schedule1.FitSelToView
    End If
End Sub

The sample calls the FitSelToView method once the control shows or hides the calendar panel.