Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1475
Custom ShorCuts
posted

Hi All-

Is there anyway that I can use my own custom shorcuts instead of selecting from the drop down in the shared props property of the tool.

Thanks in advance.

-Swetha.

  • 44743
    Suggested Answer
    posted

    Yes, you can create a custom shortcut combination by or-ing together values from the Keys enum. Cast the resulting value to a Shortcut enum type and set it on the SharedProps.Shortcut property:

    tool.SharedProps.Shortcut = (Shortcut)( Keys.Control | Keys.Down );