

| Type | Description |
Use the SelectionChanged event to notify your application when the selection changes. The Selectable property retrieves or sets the expression that defines which dates can be selected. To retrieve the selected date(s), use the SelDate or SelectDate properties:
You can also use the FocusDate property to specify which date 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 SubSyntax for SelectionChanged event, /NET version, on:
private void SelectionChanged(object sender)
{
}
Private Sub SelectionChanged(ByVal sender As System.Object) Handles SelectionChanged End Sub |
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 |
<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 |