I tried to catch KeyPress, KeyUp, KeyDown events, but the Value property was not the one I typed, but the old value(1:55 in my example). I think that the control catches the event before me and doesn't allow the change. ValueChanged event occurs only when I use the up-arrow to change the hour.
Hi!
I use a DateTimePicker control to display the time. MaxDate is set for example to 2:10 and the control's Value is 1:55. If I select the hour in control and use up-arrow to increase the hour, the control's value is changed to 2:10, which is MaxDate value. But if Value is 1:55 and I try to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.