Solved

User CTRL-R To Execute

Posted on 2006-11-01
3
271 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now