Function Key(F1,F2...F12) Press (Keyboard) Open New Window Form in C# Window Application
Function Key Press Open New Window Form
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Manoj BhoirRank #599 · 4K pointsPosted May 11, 2015, 6:16 AM EDT
You can use this code :
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1)
{
Form1 objForm1 = new Form1();
objForm1.Show();
}
if (e.KeyCode == Keys.F2)
{
Form2 objForm2 = new Form2();
objForm2.Show();
}
if (e.KeyCode == Keys.F12)
{
Form3 objForm3 = new Form3();
objForm3.Show();
}
}
g s102 pointsPosted May 11, 2015, 11:13 PM EDT
http://dotnetdrizzles.blogspot.in/2015/05/function-keyf1f2f12-press-open-new.html
http://screenshotdrizzles.blogspot.in/2015/05/function-keyf1f2f12-press-open-new.html