Short cut key

G

Guest

hi
I like to use short cut key using Ctl+Shift+Key for menu items. How to do it in C#?? Normally I have used Alt+Key fo
selecting menu items or buttons (example : Alt+F for &File menu and Alt+S for &Save button). How to do it fo
Ctl+Shift+key (example : Clt+Shift+E for Exit in File menu). It is very urgent

thanks
Kannan.
 
M

mortb

I have some code where ctrl shift T is specified as shortcut key for a menu
command it looks like this:

this.smiFileOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftT;

the "System.Windows.Forms.Shortcut" is an enum that contains many different
combinations including alt-key, ctrl-key and ctrl-shift-key

/mortb

Kannan said:
hi,
I like to use short cut key using Ctl+Shift+Key for menu items. How to
do it in C#?? Normally I have used Alt+Key for
selecting menu items or buttons (example : Alt+F for &File menu and Alt+S
for &Save button). How to do it for
 
?

=?ISO-8859-2?Q?Marcin_Grz=EAbski?=

Hi,
hi,
I like to use short cut key using Ctl+Shift+Key for menu items. How to do it in C#?? Normally I have used Alt+Key for
selecting menu items or buttons (example : Alt+F for &File menu and Alt+S for &Save button). How to do it for
Ctl+Shift+key (example : Clt+Shift+E for Exit in File menu). It is very urgent.

thanks,
Kannan.

MenuItem has "Shortcut" property.
Look in .NET docs for more details.

Cheers!

Marcin
 

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