Bind a calendar control to a text field.
Posted on 2004-09-13
I have the following code:
Private Sub calEndCalendar_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
txtEndDate.Text = calEndCalendar.SelectedDate()
Private Sub txtStartDate_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStartDate.TextChanged
txtStartDate.Text = calStartCalendar.SelectedDate()
What I'm trying to do is make it so that when a user clicks on a date on the calendar, .net puts that date into the associated text field, however it's not working. Can someone fix this for me?