property Calendar.DateFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Date
Retrieves the date from the cursor, in the calendar panel.

TypeDescription
X as OLE_XPOS_PIXELS A single that specifies the current X location of the mouse pointer. The x values is always expressed in client coordinates.
Y as OLE_YPOS_PIXELS A single that specifies the current Y location of the mouse pointer. The y values is always expressed in client coordinates.
Date A Date expression that indicates the date from the cursor.
The DateFromPoint property indicates the date from the cursor in the calendar panel. The DateTimeFromPoint property indicates the date/time from the cursor on the schedule panel. The TimeFromPoint property indicates the time from the cursor on the schedule panel. You can use the Selection/SelCount/SelDate property to retrieve 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. The FirstVisibleDate/LastVisibleDate property indicates the first visible date in the calendar panel.

The DateFromPoint property retrieves the value based on the X and Y parameters as follows:

The /NET and /WPF versions provide a DateFromPoint property ( with no arguments ), that determines the date from the current mouse position, as the get_DateFromPoint(-1,-1) returns.