BUG: Commandbutton.SetFocus() in Form Init Sets Default = .T. (193292)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q193292 SYMPTOMS
You 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.
RESOLUTION
Set the Default property of the Commandbutton to .F. after calling the SetFocus() in the Init method.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 3/7/2005 |
---|
Keywords: | kbBug kbContainer kbCtrl kbnofix KB193292 |
---|
|