How can i assign F1 Short key for help menu item.......
2 replies to this topic
#1
Posted 09 March 2011 - 10:27 AM
|
|
|
#2
Posted 09 March 2011 - 10:21 PM
The ToolStripMenuItem object has a ShortcutKeys property which you can set to F1 or any other key you want.
#3
Posted 10 March 2011 - 10:21 PM
You could also just use a keyUp event like so:
Happy C0ding ~ Committed. :)
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1)
{
MessageBox.Show("F1");
}
}
But make sure your "KeyPreview" propertiy is set to "true" on your form.Happy C0ding ~ Committed. :)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









