2
Answers

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

pavithra

pavithra

7y
183
1
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)