event DblClick (Shift as Integer, X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS)
Occurs when the user dblclk the left mouse button over an object.

TypeDescription
Shift as Integer An integer that corresponds to the state of the SHIFT, CTRL, and ALT keys.
X as OLE_XPOS_PIXELS A single that specifies the current X location of the mouse pointer. The x values is always expressed in container 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 container coordinates.
Use the DblClick event to notify your application when the user double clicks the control's label. The Click event is fired when the user releases the left mouse button over the control. Use the RClick event to notify your application when the user right clicks the control's label. Use the IndexFromPoint property to determine the index of the date's element from the point. Use the Caption property to retrieve the caption of the date's element.

The following VB sample prints the date's element being double clicked:

Private Sub CalendarCombo1_DblClick(Shift As Integer, X As Single, Y As Single)
    With CalendarCombo1
        h = .IndexFromPoint(-1, -1)
        Debug.Print .Caption(h)
    End With
End Sub

The following VB.NET sample prints the date's element being double clicked:

Private Sub AxCalendarCombo1_DblClick(ByVal sender As Object, ByVal e As AxEXCALENDARLib._ICalendarComboEvents_DblClickEvent) Handles AxCalendarCombo1.DblClick
    With AxCalendarCombo1
        System.Diagnostics.Debug.Print(.get_Caption(.get_IndexFromPoint(e.x, e.y)))
    End With
End Sub

The following C# sample prints the date's element being double clicked:

private void axCalendarCombo1_DblClick(object sender, AxEXCALENDARLib._ICalendarComboEvents_DblClickEvent e)
{
	System.Diagnostics.Debug.Print(axCalendarCombo1.get_Caption(axCalendarCombo1.get_IndexFromPoint(e.x, e.y)));
}

The following C++ sample prints the date's element being double clicked:

void OnDblClickCalendarcombo1(short Shift, long X, long Y) 
{
	long i = m_calendarcombo.GetIndexFromPoint( X, Y );
	OutputDebugString( m_calendarcombo.GetCaption( COleVariant( i ) ) );
}

The following VFP sample prints the date's element being double clicked:

*** ActiveX Control Event ***
LPARAMETERS shift, x, y

with thisform.CalendarCombo1
	?.Caption(.IndexFromPoint(x,y))
endwith