latina

latina

  • NA
  • 6
  • 0

KeyDown Event

Aug 4 2008 10:24 AM

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)