|
-
Jul 9th, 2009, 10:35 PM
#1
Thread Starter
Frenzied Member
Using the menu strip causing problem
i created a menu strip named file
in file menu strip there is an option named Open
to access the file menu strip uaing keys "Alt+F",i changed the text to "&File"
and its working properly.
but what should i do to access the open menu strip item?
i did the following but its not working:
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
If e.Control = True And e.KeyCode = Keys.O Then
Me.OpenToolStripMenuItem.PerformClick()
End If
End Sub
-
Jul 9th, 2009, 10:38 PM
#2
Lively Member
Re: Using the menu strip causing problem
Why not do something like O&pen for the text and use Alt+P to open the "Open" option?
-
Jul 9th, 2009, 11:02 PM
#3
Re: Using the menu strip causing problem
Please keep each topic to a single thread.
http://www.vbforums.com/showthread.php?t=575498
You should be doing two things:
1. Set the Text of your menu item to "&Open", which will allow it to be activated by pressing Alt+F followed by Alt+O.
2. Set the ShortcutKeys property to Ctrl+O, which will allow it to be activated by pressing Ctrl+O.
I've already provided the second piece of information in your other thread, which is exactly why you don't ask the same question in more than one place. You end up wasting people's time by their posting information that you've already been provided with elsewhere. One topic per thread and one thread per topic please.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|