>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.