Hi May know the reason of my Esc key event not getting fired.
here is my trail I've two forms form1,form2
in form1 button click event
Form2 frm2 = new Form2(); frm2.show();
in form 2 I've an event called
private void frm2_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
this.Hide();
}
what is the wrong in this?