C# Alt+F4 Block Codes

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Alt && e.KeyCode == Keys.F4)
            {
                e.Handled = true;
            }
}

Note: Form Properties KeyPrewiew=true there will be

Yorumlar