1
Answer

KeyDown Event

latina

latina

16y
4.8k
1

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