Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
Welcome to AspAdvice Sign in | Join | Help

Help with 'Enter' Key

  •  05-08-2007, 9:54 AM

    Help with 'Enter' Key

    Hi Guys,

    I have a textbox (for a search engine) and a linkbutton when entered data in the search box and pressed 'enter' key, I want it to take the input. I tried the following code but I ran into errors saying "namespace/ assembly not recognised" Please help:

      private void KeyPress(object sender, KeyPressEventArgs e)
        {
      if(e.KeyChar == Keys.Enter)
         {
         Search_Command();
         }
         }

    I get an error for "KeyPressEventArgs "

     Thanks in advance

View Complete Thread