>>>I have a PageFrame on a form with a few pages. I don't know how to use PageDown or PageUp keys to move between pages. I can only use arrow key to do so.
>>>
>>>
>>>Thanks for any input.
>>>
>>>
>>>Ying
>>
>>The basic idea is following:
>>1. Use For.KeyPress event (with Form.KeyPreview=.T.) to intercept any key combination pressed by user.
>>2. From this event you can fire code like
>>This.pgFrame1.ActivePage=3
>>to open page #3, etc.
>
>
>If my curser is on page x and I press the PageDown key to go to page x+1
>what kind of code should use?
This.pgFrame1.ActivePage=This.pgFrame1.ActivePage+1
and don't forget to check that this is not last page.
Edward Pikman
Independent Consultant