VB.NET: What DateTimePicker event fires only when the value has actually changed, not during use of the control?

andreas_rafn
andreas_rafn used Ask the Experts™
on
I'm writing some code in which a list is supposed to update according to dates in DateTimePicker controls. The update process may take 1 or 2 seconds if the date range is wide. Right now I'm using the ValueChanged event to trigger the list update, but the problem is that it fires even when the user is just browsing months/years etc. in the DateTimePicker user interface.

Is there a way only to make the update run when the user has actually finished using the DateTimePicker user interface? I know that LostFocus is an option, but I want to make it fire as soon as the user has selected a date.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
The problem is that if I use only the closeup event to catch user input changes then nothing will happen if users simply type in the date in the control.

Can I in someway check if the pop up date selector i expanded then I would be able to handle it in the best way possible?

Alternatively can I disable keying in dates without handing the keypress event? It shouldn't be possible to even enter the text field if thats what I do.

Author

Commented:
Thanks, great, that's all I'll need to implement what I want.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial