Wrong shortcut displayed - Ctrl+D0

G

Guest

I have a C# form that displays a shortcut key for a MenuItem but it is
displayed with a 'D' in front of the number: Instead of Ctrl+0 it shows
Ctrl+D0.

Any suggestions on this?
 
H

Herfried K. Wagner [MVP]

* =?Utf-8?B?RGV2ZWxvcGVy?= said:
I have a C# form that displays a shortcut key for a MenuItem but it is
displayed with a 'D' in front of the number: Instead of Ctrl+0 it shows
Ctrl+D0.

Can you post the relevant parts of your form's 'Sub InitializeComponent'
where the menu and its items are defined?
 
M

Me

It doesn't matter if the menu is generated in the designer and I select
Ctrl0 for the shortcut property, or I generate the menu dynamically and add
the MenuItems in programatically.

m_miFirstItem.Shortcut = Shortcut.Ctrl0;

It also does the same thing with Alt + <number> keys as well but works fine
for ctrl/alt + <letter>.
 
M

Me

Found it: Microsoft Knowledge Base Article - 814353

Looks like there's no cure right away.

--
Regards,
Srikanth Gobburu

Me said:
It doesn't matter if the menu is generated in the designer and I select
Ctrl0 for the shortcut property, or I generate the menu dynamically and add
the MenuItems in programatically.

m_miFirstItem.Shortcut = Shortcut.Ctrl0;

It also does the same thing with Alt + <number> keys as well but works fine
for ctrl/alt + <letter>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top