How to catch ENTER between controls?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this problem. I catch ENTER key between controls in a form to bring
focus to the next control. But if it catches an ENTER in a textbox and brings
focus to a button or to a comboBox, automatically performs the action of next
control (in this case, automatically click the button as I catch Enter there
too). How can I eliminate the ENTER Key in from the keyboard Buffer?. (I'm
Developing in VS.net 2003)
 
Set the key event to "handled"
Also, Take a look at the ApplicationEx, you can catch and consume the event
there by adding a windows message filter.
 
Damon,

The "Handled" property I tried before and did not work at all. Do you have
an example with the message Filter?

Thank you
---------------------------------------------

Damon Payne said:
Set the key event to "handled"
Also, Take a look at the ApplicationEx, you can catch and consume the event
there by adding a windows message filter.
 
Back
Top