Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTimePicker ValueChanged Event

Status
Not open for further replies.

smeeks

Programmer
Oct 7, 2003
31
US
When you click the down arrow on a DTP control, the ValueChanged event fires even if you don't pick a date in the drop down calender? I only want this event to fire if the user actually picks a different date than was previously in the DTP? Is there another event I should be using. Specifically, some of DTP's don't have an actual date assigned to them (loaded from a Database) when I create them...it's just set to the current date with the checkbox unchecked so the user knows it is not set. When the user picks the control I thought about comparing it(the value) to the actual date....and then I would know if they actually changed the date or not, but it is possible they could change it to a day other than today .....then back to today's date...which would cause this code to fail. HELP!

Shane
 
I don't know how many times I post a question and then figure it out. I didn't even jump the gun on this one....I have been trying to figure this out for at least 2 or 3 hours. Oh Well, I figured out what to do. For those who have this same issue....use the TextChanged event.
 
Well...I spoke to soon. This event doesn't work properly....so if there are any suggestions I am still open.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top