I created a form, I do not want to use minimize or maximize button, I want to use for example when pressing "F1" my form is hidden and press F1 again it reappears.
I tried this, but without success:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1)
{
Form1 fm = new Form1();
fm .Hide();
}
}