Solved

User CTRL-R To Execute

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

21 Experts available now in Live!

Get 1:1 Help Now