V
velasquez.m
i'm working with visual studio 2005 and have a solution with 16
projects in it.
this specific application has a base form with other forms added to it
at any area of the application that the user navigates to through the
nav panel
anyways, on one of the forms i'm attempting to have a configuration
setting set to a hotkey press for the user to be able to reset a
feature with a hotkey combination
in design mode, i had the form that i want the event hooked to
selected, go to the events properties, double click the keydown event
then add this code:
private void form_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == (Keys.Shift | Keys.R))
{
MessageBox.Show("SHIFT + R");
}
}
obviously the hotkey combination is the shift key + the R key.
however, nothing happens when i debug this application and test the key
combination on this form.
i also set a breakpoint on the "if statement" to see if it hits and it
does not even hit the if statement in the keydown event
any and all help would be greatly appreciated, thank you.
mike
projects in it.
this specific application has a base form with other forms added to it
at any area of the application that the user navigates to through the
nav panel
anyways, on one of the forms i'm attempting to have a configuration
setting set to a hotkey press for the user to be able to reset a
feature with a hotkey combination
in design mode, i had the form that i want the event hooked to
selected, go to the events properties, double click the keydown event
then add this code:
private void form_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == (Keys.Shift | Keys.R))
{
MessageBox.Show("SHIFT + R");
}
}
obviously the hotkey combination is the shift key + the R key.
however, nothing happens when i debug this application and test the key
combination on this form.
i also set a breakpoint on the "if statement" to see if it hits and it
does not even hit the if statement in the keydown event
any and all help would be greatly appreciated, thank you.
mike