473,698 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any tricks how to make menu shortcuts like: Ctrl+W, E

Hi,

I would like to have a View menu like the one in VS(2005), where I can have
"two-key" shortcuts (e.g. Ctrl+W followed by E or Ctrl+E).

Any suggestions how to do that?

Thanks, Jan
Mar 7 '08 #1
2 1787
On Fri, 07 Mar 2008 04:33:00 -0800, Jan <j0************ ****@world.dk>
wrote:
Hi,

I would like to have a View menu like the one in VS(2005), where I can
have
"two-key" shortcuts (e.g. Ctrl+W followed by E or Ctrl+E).
I haven't seen any built-in support for something like that. So you would
most likely have to handle the key presses yourself, in whatever
control/form is relevant for the input. Upon receiving the first key
press, you'll have to set some state (presumably also displaying some
status to the user, such as changing text in a status bar or something)
and then upon receiving the second key press, if that state is set, handle
the key press as the completion for the command.

Pete
Mar 7 '08 #2
OK. Thanks, Peter.
Mar 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3409
by: David Burson | last post by:
Hi, In VB6, I often used shift+F2 to see a definition, and ctrl+shift+F2 to get back to where I was originally. In VB.Net, F12 is great to get to a definition, but how to I get back to where I was originally? I know I can set my shortcuts to match VB6, but I'd rather just get used to the standard .Net shortcuts, if everything I need is available.
2
2667
by: Brano | last post by:
Hi all, I have this problem I have a menu structure in my VB.NET application that is about 4 levels deep. I need an CTRL+key access to the 3rd level so that if user press CTRL+key the 3rd menu rolls out The standart code : myMenuItem.Shortcut = Shortcut.CtrlA
4
2381
by: Henry C. Wu | last post by:
Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the right like in Internet Explorer or any MS applications? What I'm doing now to align them all to the right is to add spaces but this is an ugly solution because some wont line up properly. Thanks, Henry
2
1077
by: PadPad | last post by:
How to create the menu shortcuts for the menu item.
2
1005
by: Pad | last post by:
How to create new shortcuts key in order for the user to access it. for example I want to create ctrl+f for the File menu. How can I do this???
0
853
by: Fredrik Melin | last post by:
I dont know if its the framework or the fact that I am using MenuStrip nowadays but If you have a textbox highlighted (active control), menu shortcuts dont work anymore. My textboxes is readonly but enabled (so they are white in the background) CType(Item, TextBox).ReadOnly = True CType(Item, TextBox).Enabled = True CType(Item, TextBox).CausesValidation = False CType(Item, TextBox).BackColor = Color.White
0
1106
by: Dave Harris | last post by:
After switching cultures for a thread, the Menu shortcuts are still showing the English word shift (as in Ctrl+Shift+M instead of Ctrl+Maj+M in French). Running this on a French version of windows doesn't seem to act any better. What ultimately controls the display of the menu shortcut string? .NET, the OS, the keyboard attached? It doesn't seem to be the keyboard, other applications like windows media play show Maj just fine in the...
0
1313
by: Andrus | last post by:
MDI WinForms 2 application. I need that Ctrl+F1 cycles through windows like Ctrl+Tab and Ctrl+Tab is redefined. I overrided MDI child form OnKeypress method but Ctrl+F1 press is ignored. For unknown reason base.ProcessCmdKey calls method itself. How to fix ? Andrus.
11
10575
by: shadyabhi | last post by:
How can i accept key strokes like Ctrl+A etc etc ... i mean combination of 2 keys... Pls give a small peice of code to demonstrate... i use gcc under linux platform
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9028
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7728
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.