hi
i need to close the form when esc key is pressed. i tried as below but no response.
thanks in adv
kssk
i need to close the form when esc key is pressed. i tried as below but no response.
Code:
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if(e.KeyChar==(char)27)
{
this.Hide();
}
}
kssk
Comment