Author: SirPaladin1969 | Posted on: 4/6/2009 7:18:39 PM | Views : 421

I have my calendar control operations almost working the way I want it to, except for one major bug. I don't know how to capture if the date selected on the calendar is the same as the original date because it doesn't trigger the Calendar1_SelectionChanged event, which is where I would then reset its visible property to false. I've got four different date fields, each with their own button to display the calendar, populate it with any date already in those fields, or if blank, default to today's date. Normally, selecting a date would then populate the calling field and close the calendar. It all works fine unless the date selected is the same as the original date passed. Since the date isn't changing, it never gets the instruction to set visible to false. I'm not seeing any method with the calendar control to handle a Click event. Anyone know how I should capture when the date selected is the same as the original Calendar1.SelectedDate?
Go to the complete details ...