14 August 2012

Form will open by pressing the Enter key or Space Bar

KeyPreview = true 

private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
AboutBox1 aabt = new AboutBox1();
aabt.Show();
}
}
}

No comments: