Type | Description | |||
Date | A date expression that indicates the selected date. |
In VB/NET or C# you may need to use the Nothing, null or Date.FromOADate(0) to convert the 0 value to a null date.
For instance,
The following VB sample set the SelDate property on empty, when the user presses the Delete key: ( displays an empty date )
Private Sub CalendarCombo1_KeyDown(KeyCode As Integer, Shift As Integer) If (KeyCode = vbKeyDelete) Then CalendarCombo1.SelDate = 0 End If End Sub
or
Private Sub CalendarCombo1_KeyDown(KeyCode As Integer, Shift As Integer) If (KeyCode = vbKeyDelete) Then CalendarCombo1.Value = 0 End If End Sub