Microsoft KB Archive/136422

= FIX:Visual FoxPro Hangs If Focus Set to TextBox in Grid Column =

Article ID: 136422

Article Last Modified on 3/24/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q136422



SYMPTOMS
Calling the SetFocus method of a text box in a grid's Column from a Valid event of another text box on a Form causes Visual FoxPro to hang (stop responding).



WORKAROUND
Call the SetFocus method from the LostFocus event instead of from the Valid event.



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 Visual FoxPro 3.0b for Windows.



Steps to Reproduce Problem
 Place a grid and a text box on a form  In the text box Valid event procedure, add the following line of code: THIS.PARENT.GRID1.COLUMN1.TEXT1.SETFOCUS  Save and Run the Form Move to the text box on the Form Press the ENTER Key to trigger the Valid event.</ol>

Additional query words: VFoxWin fixlist3.00b buglist3.00

Keywords: kbbug kbfix KB136422

-

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

© Microsoft Corporation. All rights reserved.