PRB: Page Activate Event Does Not Set Focus to Different PageLast reviewed: November 27, 1996Article ID: Q160061 |
The information in this article applies to:
SYMPTOMSUsing the Activate event of a Page in a PageFrame to set focus to a different page does not work.
WORKAROUNDTo work around this problem, disable all pages except the one that is to have focus. For example, in the Deactivate event of the first page place the following code:
This.Parent.Page1.Enabled = .F. This.Parent.Page2.Enabled = .F. This.Parent.Page3.Enabled = .F. This.Parent.Page4.SetFocusThis code disables all the other pages in the PageFrame and sets the focus to the remaining active page, Page 4 in this case. Since this code is in the Deactivate event of the prior page, no problems occur.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONUsing the NODEFAULT keyword does not produce the intended behavior. However, the addition of the NODEFAULT keyword to the Activate event causes the behavior of the examples below to differ.
Steps to Reproduce Behavior
If NODEFAULT is removed from the above example, focus is never directed to Page4 after activating Page2. Moving from page to page behaves as if no code exists in the Activate event.
|
KBCategory: kbprg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |