DateTimePicker.KeyUp is not firing

  • Thread starter Thread starter mahesh.nimbalkar
  • Start date Start date
M

mahesh.nimbalkar

I wanted to catch escape key pressed event for DateTimePicker, so I
hooked DateTimePicker.KeyUp in my application. But this event is not
firing when I press escape key and it is firing if I press any other
key.

I tried same code in test project and DateTimePicker.KeyUp is firing
when I press escape key. Any idea why it is not firing
DateTimePicker.KeyUp event when I press escape key?


Thanks!
 
Did you check if you filter Escape key in DefaultWindowProc or similar
method in your form?
 
check if have you correctly defined the event.. see that you "handles
datetimepicker.keyup" is added properly
 
Back
Top