>>>>>>>Why sometimes pressing key tab on form with pageframe the focus goes to another page. How to avoid this?
>>>>>>
>>>>>>When you press a tab, the corresponding page will get focus by default. If that does not happen to you, you must have added code which overrides the default behavior.
>>>>>
>>>>>Which method must I use to avoid that the cursor goes to another page?
>>>>
>>>>Do you mean that you do NOT want the page to change when someone presses a tab?
>>>
>>>Yes.
>>
>>I guess you want them to be able to switch pages, but only under when some criteria is met?
>>I guess something like this would work
>>pageX.deactivate:
>>if not yourcondition
>> nodefault
>>endif
>>If that's not what you want, you can set Tabs to .F., or disable the other pages. But if so, why use a pageframe at all?
>
>I think Tony's saying that he's on a page and presses TAB, hoping to tab to the first/next field, but instead the page tab is activated and he goes to another page. If so this is strange behaviour as, even when you click on a page tab, then hit the TAB key, it uysually tabs to te first field on that page in the Tab Order.
>
>Tony, I suggest you test all the properties of your form objects, to check that the .Tabs property is NOT set to .F.
>
>Also, check the .Taborder property on h page where you expect to tab from field to field. Do this via View Menu -> Tab order.
Yes I see what you mean, and that makes more sense. The word "Tab" is a little overloaded here, simce it can mean both the TAB key, and the pageframe's tabs. I agree that setting the taborder correct is the way to go, and then add some code to the "last" object to make sure that the focus stays on the page.