For example letting this work:
protected override bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.H)
{
this.Close();
return true;
}
else
{
return base.ProcessDialogKey(keyData);
}
}
While I am disabling Alt+f4 from working I can't use e.Cancel = true;
because it disables hitting the key H from closing the program.