473,757 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

the menu and the shortcuts

Hi,

Two questions about menu and shortcuts (in WindowsForms) :

1) I create a main menu with two items in menu bar : &menu 1 and
m&enu 2
I see the accelarator key (m underline for menu 1 and e underline for
menu 2) only if i strike the alt key.
If I don't use alt key, never i see these accelerator keys.
Is it possible to see these accelerator key without to strike alt key ?
I tries to use a : SendKeys.send(" %") but I think it is not possible to
send only Alt but always Alt+other character (ex: "%{A} == ALT+A).
Has anybody a solution ?

2) I use also Ctrl+letter as shortcut in menu items.
If the menu is not active, the shortcut works well, but if the menu is
active, never the shortcut runs even if I see the menu and the word
CTRL+A (for example). I think it is not normal to display Ctrl+A and
Ctrl and A doesn't work.

Thanks in advance

Dominique
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
7 1208
"Dominique Gratpain" <no****@devdex. com> schrieb:
1) I create a main menu with two items in menu bar : &menu 1 and
m&enu 2
I see the accelarator key (m underline for menu 1 and e underline for
menu 2) only if i strike the alt key.
If I don't use alt key, never i see these accelerator keys.
Is it possible to see these accelerator key without to strike alt key ?
I tries to use a : SendKeys.send(" %") but I think it is not possible to
send only Alt but always Alt+other character (ex: "%{A} == ALT+A).
Has anybody a solution ?


Showing the keyboard navigation indicators
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=showacceler ators&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
On 2005-03-21, Herfried K. Wagner [MVP] <hi************ ***@gmx.at> wrote:
"Dominique Gratpain" <no****@devdex. com> schrieb:
1) I create a main menu with two items in menu bar : &menu 1 and
m&enu 2
I see the accelarator key (m underline for menu 1 and e underline for
menu 2) only if i strike the alt key.
If I don't use alt key, never i see these accelerator keys.
Is it possible to see these accelerator key without to strike alt key ?
I tries to use a : SendKeys.send(" %") but I think it is not possible to
send only Alt but always Alt+other character (ex: "%{A} == ALT+A).
Has anybody a solution ?


Showing the keyboard navigation indicators
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=showacceler ators&lang=en>


Not to berate the OP, but that feature has been part of windows now for
what? 6 years... You would think that people would have caught on by
now :)

--
Tom Shelton [MVP]
Nov 21 '05 #3
Herfried : many thanks for your answer and for your website, it will
help me

Tom : thanks to not berate me but i am sorry if windows doesn’t do well
its job even since 6 years. I am an old developper who uses many times
PDS Basic 7.1 in DOS and with Dos, i could do what i want and i have not
these problems. Herfried's article is about Win 2000 and i use Win 2000.
His article solves my problem.
Perharps, do you have a solution for the question 2 instead of criticize
?

Dominique


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #4
On 2005-03-22, Dominique Gratpain <no****@devdex. com> wrote:
Herfried : many thanks for your answer and for your website, it will
help me

Tom : thanks to not berate me but i am sorry if windows doesn’t do well
its job even since 6 years. I am an old developper who uses many times
PDS Basic 7.1 in DOS and with Dos, i could do what i want and i have not
these problems. Herfried's article is about Win 2000 and i use Win 2000.
His article solves my problem.
Perharps, do you have a solution for the question 2 instead of criticize
?

Dominique


Dominique - I'm sorry if I offended you. It was never my intention.
It's just that this has been a fairly frequent question over the years...
I just found it slightly amusing that this question still comes up.
Again, I'm sorry...

--
Tom Shelton [MVP]
Nov 21 '05 #5

no problem, Tom

but if you have an answer to my question 2, it will be well

Best Regards

Dominique

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #6
On 2005-03-23, Dominique Gratpain <no****@devdex. com> wrote:

no problem, Tom

but if you have an answer to my question 2, it will be well

Best Regards

Dominique


Dominique... I'm sorry, but I don't quite understand the question. Can
you try and ask it one more time? I'll see if I can help :)

--
Tom Shelton [MVP]
Nov 21 '05 #7
Hi Tom,

Sorry, i am late to answer, yesterday I went to DevDays in Paris (2200
developpers in a big warehouse) : good news, good show .. and good
lunch.

Here details about my question :

In WindowForms, in a new project, I put a mainmenu with 2 items on the
menu bar : menu 1 and menu 2.
Under menu 1, I create menu 1 1 and menu 1 2 and I add shortcut : CtlA
for menu 1 1 and CtlB for menu 1 2

Under menu 2, I create menu 2 1 and menu 2 2 and I add shortcut : CtlC
for menu 2 1 and CtlD for menu 2 2

Then I add to see then menu choosen :

Private Sub MenuItem3_Click (ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem3.Click , MenuItem4.Click ,
MenuItem5.Click , MenuItem6.Click
MessageBox.Show ("choose : " + sender.text)
End Sub

Then I run the project.
If i strike on Ctl + A, it is OK (also for Ctl + B ..).

Then I open a menu with the mouse, i see : menu 1 1 Ctrl+A and
Menu 1 2 Ctrl+B.

But now if i strike on Ctrl+A or Ctrl+B or Ctrl+C or Ctrl+D, nothing
appears, no menuitem is choosen.
I think it is not normal. We see the words : Ctrl+A but it doesn't run.
It is good only if the menu isn't activated.

I have the same problem with Win 2000 and Win XP.

What’s happen ??

Thanks

Dominique


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #8

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

Similar topics

7
6899
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on datasheets (for subforms). I would like to do this on startup of the application. To be clear:
4
14188
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with "Select All" and "Clear Selection" to a checked list box? Thanks, Aaron Queenan.
7
1199
by: news.microsoft.com | last post by:
I am in the process of porting a program from DOS to VB.NET. I was given the direction of recreating the feel and functionality of the menu system from DOS. The system will not have access to a mouse so it will (read must) all be done through Arrow/Enter keys. The way I'm planning to attack this right now is to use Graphics.DrawString & Graphics.FillRectangle in the Form.Paint method to duplicate the look and feel of the DOS menus. ...
2
1081
by: PadPad | last post by:
How to create the menu shortcuts for the menu item.
2
1007
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
859
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
1110
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
1156
by: dinka | last post by:
Hi, I create a form with a main menu and assigned some shortcuts to the menu items, the form also contains a textbox, when the focus is in the text box the menu shortcuts like CTRL+R are not working... Help.... Thank you, Dina
2
7078
by: andylotus | last post by:
Hi People I have a WinForm program. The UI contains a ToolStripDropdownButton, which is associate a list of menu items of ToolStripMenuItem, created dynamically. Upon different scenarios of user operations, the DropdowButton need to clean up all its menuitems, and create new ones. Here the codes: //////////////////// Void CreateForEmail()
0
9904
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...
1
9884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9735
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8736
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
6556
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
5168
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...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.