Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Wrong shortcut displayed - Ctrl+D0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Developer - 14 Sep 2004 03:07 GMT
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?
Sijin Joseph - 14 Sep 2004 06:52 GMT
Can you show the code where the shortcut is being set?

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> 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?
Herfried K. Wagner [MVP] - 14 Sep 2004 11:58 GMT
* =?Utf-8?B?RGV2ZWxvcGVy?= <Developer@discussions.microsoft.com> scripsit:
> 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?

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

Me - 14 Sep 2004 15:11 GMT
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>.

Signature

Regards,
Srikanth Gobburu

> * =?Utf-8?B?RGV2ZWxvcGVy?= <Developer@discussions.microsoft.com> scripsit:
> > I have a C# form that displays a shortcut key for a MenuItem but it is
[quoted text clipped - 3 lines]
> Can you post the relevant parts of your form's 'Sub InitializeComponent'
> where the menu and its items are defined?
Me - 17 Sep 2004 15:51 GMT
Found it: Microsoft Knowledge Base Article - 814353

Looks like there's no cure right away.

Signature

Regards,
Srikanth Gobburu

> 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
[quoted text clipped - 12 lines]
> > Can you post the relevant parts of your form's 'Sub InitializeComponent'
> > where the menu and its items are defined?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.