How about using the
KeyDown
event.
First set KeyPreview to true. Do it in constructor.
this.KeyPreview = true;
this.KeyDown += new KeyEventHandler(KeyDownEvent);
void KeyDownEvent(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.X)
{
this.Close();
}
}
It should work now.