1
Reply

KeyDown Event

latina

latina

Aug 4 2008 10:24 AM
4.8k

Hi there,

somenthing very easy but it doesnt work.

If you click the  key "ESC" then close the whole application:

private void frmLogin_KeyDown(object sender, KeyEventArgs e)

{

if (e.KeyCode == Keys.Escape)

{

          application.exit();         

}

}

 


Answers (1)
Next Recommended Forum