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 / April 2005

Tip: Looking for answers? Try searching our database.

About menu items shortcuts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yeghia Dolbakyan - 25 Apr 2005 19:27 GMT
Hi Guys

Is it possible to display Custom Shortcut Keys for menu items. The standard
Property Page for menu items allows only selected shortcuts to choose. I
tried following text for menu item: "Process\tCtrl+Alt+P" but symbol '\t '

What you can suggest me
Thanks in advance

Regards
Yeghia
Stoitcho Goutsev \(100\) [C# MVP] - 30 Apr 2005 01:37 GMT
Yeghia,

To add the a for a shortcut to the menu item's caption you need to do 2
things:
1. Set in the property browser the menu item's ShowShortcut property to
*false*
2. Add the text for the shortcut to the menu item's caption. You have to use
an actual <tab> ASCII code to separate the menu item's name from its
shortcut.
AFAIK you cannot do that in the property browser, but you can do it from
code

menuItem.Text = "New\tCtrl+Alt+N";

Keep in mind that as long as you can set whatever text you want, the
shortcuts for the menu items has to one of the listed in the Shortcut enum
values, unless you don't do your own key handling.

Signature

Stoitcho Goutsev (100) [C# MVP]

> Hi Guys
>
[quoted text clipped - 8 lines]
> Regards
> Yeghia
Yeghia Dolbakyan - 30 Apr 2005 19:56 GMT
Thanks Very Much for Your Help

Regards
Yeghia

> Yeghia,
>
[quoted text clipped - 26 lines]
>> Regards
>> Yeghia

Rate this thread:







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.