pavithra

pavithra

  • NA
  • 25
  • 1k

f1 keys in button function to clear the data in textbox?

Apr 21 2017 2:46 AM
private void form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F)
{
btnReset.PerformClick();
}
}
private void form1_Load(object sender, EventArgs e)
{
this.KeyPreview = true;
}
 
but this coding doesntwrk...but wen im using cntrl+j it works. i need for the f1,f2,f3 hot keys anyone please help  

Answers (2)