I have a problem with my project. Show I have a form and I want if I press F11 then my form will hide. If I press F12 my form will show again. How I can do that?
Here is my code:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if(keyData == Keys.F11)
{
this.Hide();
}
if(keyData == Keys.F12)
{
this.Show();
}
return base.ProcessCmdKey(ref msg, keyData);
}