7 replies
by dklippert
Which version?
Look for the term Calendar control
by wmurch
by dushy_ant
by wmurch
by jodybcarter
You can do this by adding the Calendar Control, a text field to hold the date value and a button to click and display the calendar.
In the form_load event, set the calendar control visible property to false. Then, in the button's click event, you would set the calendar control visible property to true. Then, you add code in the calendar control's click event to set the text in the text box to the value of the date selected in the calendar control.
Here's an example of the code:
PrivateSub Calendar_Click()
Text1.SetFocus
Text1.Text = Calendar.Value
Calendar.Visible = False
End Sub
Private Sub Command1_Click()
Calendar.Visible = True
End Sub
Private Sub Form_Load()
Calendar.Visible = False
End Sub
by wmurch
by wmurch
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending