?
Solved

User CTRL-R To Execute

Posted on 2006-11-01
3
Medium Priority
?
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
Praveen Kumar earned 2000 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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 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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

777 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