Function Key(F1,F2...F12) Press (Keyboard) Open New Window Form in C# Window Application
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
g sPosted May 12, 2015, 3:13 AM
http://dotnetdrizzles.blogspot.in/2015/05/function-keyf1f2f12-press-open-new.html
http://screenshotdrizzles.blogspot.in/2015/05/function-keyf1f2f12-press-open-new.html
Manoj BhoirPosted May 11, 2015, 10:16 AM
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();
}
}