How do I set shortcut keys to a picture event? What I want to do is be able to set Alt+B to be the shortcut to a picture_click event. How can I go about this?
------------------
Ryan
[email protected]
ICQ# 47799046
Printable View
How do I set shortcut keys to a picture event? What I want to do is be able to set Alt+B to be the shortcut to a picture_click event. How can I go about this?
------------------
Ryan
[email protected]
ICQ# 47799046
One (non elegant) way is to add a MenuItem with the function you want to perform at the click-event of your picture, and then set the Alt-B ShortCut to that menu item.
this method is from the help section
Sets a value that specifies a shortcut key for a Menu object. Not available at run time.
Remarks
Use this property to provide keyboard shortcuts for menu commands. You can set this property using the Menu Editor. For a list of shortcut keys you can use, see the Shortcut list in the Menu Editor.
Note In addition to shortcut keys, you can also assign access keys to commands, menus, and controls by using an ampersand (&) in the Caption property setting.
If you want Alt+B to switch to your application and activate the Picture_Click event, then you can use the RegisterHotkey API. Post here if you need an example.
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
yes, I definitely need an example for that API call. I'm not that familiar with API, yet. Thanks.
------------------
Ryan
[email protected]
ICQ# 47799046