• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Adding Shortcut To A .net-menu-item

#1
Hi everybody,

i can add eg. "F8" as a shortcut to a .net-menu-item with this command:

oMenuItem:ShortcutKeys = System.Windows.Forms.Keys:F8.

but I have no clue how to add a "combined" shortcut like "CTRL-F". I guess I have to combine "Keys:Control" and "Keys:F" somehow, but I don't kno how.

any help appreciated
 

Osborne

Active Member
#2
This should work:
Code:
oMenuItem:ShortcutKeys = CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.Keys:Control,
                                                          System.Windows.Forms.Keys:F),
                              System.Windows.Forms.Keys).