Solved

User CTRL-R To Execute

Posted on 2006-11-01
3
306 Views
Last Modified: 2008-02-26
I have a menu item button that I want to execute with a CTRL-R  I know this is a dumb question, but I have not needed to honestly ever do this before, and need to know how.
0
Comment
Question by:chrisryhal
3 Comments
 
LVL 12

Accepted Solution

by:
Mamtha1982 earned 500 total points
ID: 17849155
Menu Item have ShortcutKeys Property, just set it
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 17849168
Select menu item in the Form designer, open its properties and fill ShortcurKeys property.
If you want to do this programmatically, use the code:

' Assign Ctrl+R shortcut to MyMenuItem
Me.MyMenuItem.ShortcutKeys = CType((System.Windows.Forms.Keys.Control Or System.Windows.Forms.Keys.R), System.Windows.Forms.Keys)
0
 
LVL 17

Expert Comment

by:ZeonFlash
ID: 17849172
Yup, just set it to "CtrlR", or in code you can specify the shortcut like this:

      MenuItem1.Shortcut = Shortcut.CtrlR
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question