Mayur  Gujrathi

Mayur Gujrathi

  • 408
  • 3.9k
  • 1m

To know enter is pressed on leave event of ComboBox

Jul 6 2011 3:40 AM
Hello every one

I am moving between controls in my application on enter click

How can i know enter key is pressed on leave event of combobox or textbox in c#

Actually i am doing something on leave event of textbox as my control goes to next control on enter key in my whole application but it that particular code should be execute only on leave event and when enter key is pressed
Now problem is that it is executing on leave event but i am not getting how to know enter is pressed

Answers (13)