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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top