We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTimePickerAdv Validation

Thread ID:





26101 Mar 14,2005 07:26 PM UTC Mar 14,2005 08:14 PM UTC WinForms 2
Tags: Tools
Kenneth Johnson
Asked On March 14, 2005 07:26 PM UTC

I am trying to validate the selected date before the user leaves the control by handling the ValueChanged event. The control is set to accept nulls and starts with no value in the text box portion of the control. When the calendar is popped up, today''s date is automatically selected. As soon as the user selects a different date, the ValueChanged event is fired with the calendar value set to today''s date. The same event is then fired with the value set to the user selected date. After the user has selected a date for the first time, the ValueChanged event only fired once with the value set to the user''s selected date. Is there a setting that will prevent the first ValueChanged event with today''s date? If not, is there a better way to give the user immediate feedback on his/her selection? Thanks, Ken

Kenneth Johnson
Replied On March 14, 2005 07:33 PM UTC

I forgot to mention that we are using version Ken

Kenneth Johnson
Replied On March 14, 2005 08:14 PM UTC

Never mind. I found what I was looking for.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon