Adding Shortcut To A .net-menu-item

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
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).
 
Top