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.
 

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