.NET UpDown KeyPress Beep

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Greetings,

We are handling the KeyPress event in an UpDown control, which
determines if Enter or Escape has been pressed, then closes the dialog
with either a DialogResult.OK or DialogResult.Cancel, respectively. We
seem to be having a beep occur when this happens, at some point after
the event handler is through processing. Not sure quite why this is.
Any ideas to inspire us in the right direction? Thanks in advance.

Regards,
Michael Powell
 
Apologies for my ignorance. Just FYI, apparently this is a difference
between how the framework handles KeyPress and KeyDown. KeyDown seems
to be the preferred method (occuring without that annoying beep...).
Not to mention, the KeyDown event arguments are more informative
anyway. Hope this helps.
 

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