private void MainForm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F10) { ServerConfiguration test1 = new ServerConfiguration(); test1.Show(); test1.Focus(); } }