

| Type | Description | 
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 SubThe sample calls the FitSelToView method once the control shows or hides the calendar panel.