OK folks.

I have a control and wish ti capture the "Delete Key".

I first tried this :
Code:
private void desktopThumbs_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == 127)
            {
                MessageBox.Show("DELETE HIT");
            }
        }
And nothing. Literaly nothing happens no matter what keys I hit.
I then tried this :
Code:
private void desktopThumbs_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete)
            {
                MessageBox.Show("DELETE HIT");
            }
        }
And this event does fire when I hit most keys but not the "Delete" key.

How do I capture the delete key ?


Thanks In Advance