Use the DateChanged to notify your application when the
browsed date was changed. The
DateChanged event is fired if the Date
property is changed. The DataChanging
property notifies your application that the user is about to change the
browsed date, by clicking any of arrows in the header of the calendar window. Use the SelectionChanged
event to notify your application when the selection was changed. The
SelectionChanged event is fired when user changes the SelDate
property. Use the FirstVisibleDate
property to get the first visible date. Use the LastVisibleDate
property to get the last visible date.
The following sample displays the browsed date:
Private Sub Calendar1_DateChanged()
Debug.Print FormatDateTime(Calendar1.Date)
End Sub