Disabling F10 key from moving focus to menu bar in C# Winforms program
Use the KeyDown Event for your form, and handle the Keystroke:
private void form_KeyDown(object sender, KeyEventArgs e)
{ if(e.KeyData == Keys.F10)
{
// Do what you want with the F10 key
e.SuppressKeyPress = true;
}
}
Also make sure that your forms KeyPreview is set to true.