Newbie Question

  • Thread starter Thread starter sherri
  • Start date Start date
S

sherri

I am very new to .NET / C#. What I want to do is call a method which
performs a search when the ENTER button on the keyboard is pressed. The
way the application currently works is that I enter text into the
textbox, then click the Search button.

Thanks!
 
You can make this button the default button in the Form, so that when enter
is pressed the button is clicked.
Or you can intercept the key press event on the form.
 
Back
Top