how to capture AltH key

  • Thread starter Thread starter Ron Vecchi
  • Start date Start date
Hi Ron,

You should handle the button's keydown event, like this:
private void button1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if((e.KeyCode==Keys.H)&&(e.Alt==true))
{
MessageBox.Show("Alt+H");
}
}

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top