OnActiveDateChanged

Definition

It is an event of the SAPCalendar.Calendar library. It occurs when the application user selects a date other than the active date of the calendar during runtime.

Use

Handling this event allows the calendar to display the day view for the selected date with details of all appointments. This is applicable when the day view is displayed along with the date picker view.

Structure

The OnActiveDateChanged event has the following characteristics:

Name

OnActiveDateChanged

Signature

Public Event OnActiveDateChanged(ByVal FromDate As Date, ByVal ToDate As Date)

Parameters

ByVal FromDate as Date

ByVal ToDate as Date

Example

Assume that an application user selects a date other than the active date in the calendar during runtime. As a result of this, the OnActiveDateChanged event occurs. The following code describes how to handle this event: