The information in this article applies to:
SYMPTOMSYou have created a form that contains a command button. The command button's Default property is set to .F. In the form Init method, you call the SetFocus() method of the command button. When the form displays, the Default property of the command button is set to .T. and the command button becomes the default button. RESOLUTIONSet the Default property of the Commandbutton to .F. after calling the SetFocus() in the Init method. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
RESULTS: The WAIT WINDOW displays, indicating that the command button's Click event fired. WorkaroundTo demonstrate the workaround, uncomment the line of code that sets the Default property of the Commandbutton to .F.NOTE: In Visual FoxPro for the Macintosh, KEYCOMP must be set to WINDOWS for the behavior described in this article to occur. © Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbContainer kbCtrl kbVFp300 kbVFp300bbug kbVFp500 kbVFp500a kbVFp500abug kbVFp600 kbVFp600bug kbGrpFox |
Last Reviewed: May 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |