BUG: Execution of the REPORT FORM command sets the focus to the application in Visual FoxPro (177260)
The information in this article applies to:
- 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 Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q177260 SYMPTOMS
Executing a REPORT FORM command while an application is running minimized,
sets focus to the application and restores the application's window. After
the REPORT FORM command finishes executing, the application loses focus and
continues running minimized.
RESOLUTION
Setting the visible property of the form to false before the REPORT FORM
command is executed prevents the form from being restored and displayed on
screen.
The following code snippet illustrates changing the visible property before
and after a REPORT FORM command is encountered. In the example below, this
code would appear in the Timer Event method of the timer object.
ThisForm.Visible=.F.
REPORT FORM prtsrv FOR RECNO() < 5 TO PRINT NOCONSOLE NOWAIT
ThisForm.Visible=.T.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 2/17/2005 |
---|
Keywords: | kbnofix kbprb KB177260 kbAudDeveloper |
---|
|