>>>HI EVERYONE
>>>
>>>Could some one please suggest how to program KEYBOARD SHORTCUTS for the SAVE,REVERT and other command buttons?
>>>
>>>Is there a way to fire an object code form a .prg?
>>>
>>1. Set your button's Caption propery to \ and it will work for Alt+S shortcut.
>>
>>2. It will work if you address it like:
>>_screen.activeform.myButton.click()
>>
>>or use
>>
>>DO FORM myForm NAME myFormName
>>
>>and address it as
>>myFormName.myButton.Click()
>
>thanx.
>
>I'm using pictures instead of caption. will it still work using \ ?
Setup a menu option that does it for you and assign the shortcuts to the menu.
Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer