event SelectionChanged ()
Fired when the selection was changed.

TypeDescription

Use the SelectionChanged event to notify your application when the selection was changed. Use the SelDate and SelectDate properties to find the selected date(s). Use the SelDate if the SingleSel is True. Use the SelectDate  is the SingleSel is False. Use the FocusDate property to specify the date that has the focus.

The following sample shows how to print the selected date when the SingleSel is True:

Private Sub Calendar1_SelectionChanged()
    Debug.Print FormatDateTime(Calendar1.SelDate())
End Sub

The following sample prints the selected date(s) if the SingleSel is False, ( the control accepts multiple selection):

Private Sub Calendar1_SelectionChanged()
    Dim i As Long
    For i = 0 To Calendar1.SelCount() - 1
        Debug.Print FormatDateTime(Calendar1.SelectDate(i))
    Next
End Sub

Syntax for SelectionChanged event, /NET version, on:

private void SelectionChanged(object sender)
{
}

Private Sub SelectionChanged(ByVal sender As System.Object) Handles SelectionChanged
End Sub

Syntax for SelectionChanged event, /COM version, on:

private void SelectionChanged(object sender, EventArgs e)
{
}

void OnSelectionChanged()
{
}

void __fastcall SelectionChanged(TObject *Sender)
{
}

procedure SelectionChanged(ASender: TObject; );
begin
end;

procedure SelectionChanged(sender: System.Object; e: System.EventArgs);
begin
end;

begin event SelectionChanged()
end event SelectionChanged

Private Sub SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectionChanged
End Sub

Private Sub SelectionChanged()
End Sub

Private Sub SelectionChanged()
End Sub

LPARAMETERS nop

PROCEDURE OnSelectionChanged(oCalendar)
RETURN

Syntax for SelectionChanged event, /COM version (others), on:

<SCRIPT EVENT="SelectionChanged()" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function SelectionChanged()
End Function
</SCRIPT>

Procedure OnComSelectionChanged 
	Forward Send OnComSelectionChanged 
End_Procedure

METHOD OCX_SelectionChanged() CLASS MainDialog
RETURN NIL

void onEvent_SelectionChanged()
{
}

function SelectionChanged as v ()
end function

function nativeObject_SelectionChanged()
return