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