Microsoft KB Archive/162082

= FIX: LostFocus of Form in Formset Does Not Fire with Mouse =

Article ID: 162082

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q162082



SYMPTOMS
The LostFocus event of Form in a FormSet does not fire when a mouse is used to change the active form. However, using the keyboard does fire the form's LostFocus.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro 5.0 for Windows.



Steps to Reproduce Behavior
 Create a New Form. On the Form menu, click "Create Form Set." On the Form menu, click "Add New Form." Add a Textbox control to each Form.  Edit Form1's LostFocus method and add the following code: WAIT WINDOW "Form1's LOSTFOCUS"   Edit Form2's LostFocus method and add the following code: WAIT WINDOW "Form2's LOSTFOCUS" </li> Save and run the Form.</li> Use the Mouse to click back and forth between the two forms. Notice that no Wait Windows appear.</li> Now use the TAB key and cycle through the Textbox controls. Notice that the Wait Windows appear.</li></ol>

Additional query words: VFOXWIN KBDSD

Keywords: kbbug kbfix kbenv KB162082

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.