OK folks.
I have a control and wish ti capture the "Delete Key".
I first tried this :
And nothing. Literaly nothing happens no matter what keys I hit.Code:private void desktopThumbs_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 127) { MessageBox.Show("DELETE HIT"); } }
I then tried this :
And this event does fire when I hit most keys but not the "Delete" key.Code:private void desktopThumbs_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { MessageBox.Show("DELETE HIT"); } }
How do I capture the delete key ?
Thanks In Advance





Reply With Quote