Calendar ActiveX Control

Calendar ActiveX Control
OnDayClick

 
Occurs when you click the day box.
void Calendar1_OnDayClick(ByVal iYear As Integer, ByVal iMonth As Integer, ByVal iDay As Integer, ByVal strText As String)

 

Parameter
iYear - the year you selected.
iMonth - the month you selected. The first month is start from zero.
iDay - the day you selected.
strText - the day text if available.

Return Value

 No return value.

Example

   

Visual Basic Syntax
Private Sub Calendar1_OnDayClick(ByVal iYear As Integer, ByVal iMonth As Integer, ByVal iDay As Integer, ByVal strText As String)
txtCurDay = iDay
txtDayText = strText
End Sub