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.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.