title: Processing unprocessed enter key c#
body: <p>I have to process enter (among other keys) on win form without it producing error sound, but only if the currently active control didn't process it already.</p>
  
  <p>So, when enter is pressed while in a TextBox or DateTimePicker, i want to process it with a form (without error sound), but if it is pressed, for example, in DataGridView i want it to be handled the way DataGridView does by default.</p>
  
  <p>OnKeyUp solves my problem with handling only unhandled keystrokes (e.Handled) and ProcessCmdKey (<a href="https://stackoverflow.com/questions/1982946/how-to-stop-window-error-sound-when-typing-enter-or-esc">this</a>) solves sound problem, but neither solves both.</p>
  
  <p>Any suggestions?</p>