PRB: Page Activate Event Does Not Set Focus to Different Page (160061)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q160061 SYMPTOMS
Using the Activate event of a Page in a PageFrame to set focus to a
different page does not work.
WORKAROUND
To 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.SetFocus
This 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.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | KB160061 |
---|
|