PRB: Application Loses Focus or Opens Minimized on StartupLast reviewed: December 22, 1997Article ID: Q178117 |
The information in this article applies to:
SYMPTOMSWhen you launch a Visual FoxPro application, it appears to open minimized or loses focus.
CAUSEThis behavior occurs when you include the following code in the Init event of a Top-Level form:
APPLICATION.VISIBLE=.F. RESOLUTIONMove the following line:
APPLICATION.VISIBLE=.F.to the Activate event of the Top-Level form.
STATUSThis behavior is by design.
MORE INFORMATIONThe line Application.Visible=.F. hides the main Visual FoxPro window. The reason the application loses focus and appears to open minimized is related to the sequence of events. Because the form's Init event sets the application's Visible property to false, the application is hidden and focus returns to the last active object or application. Even though the application no longer has focus, the code continues executing as a background process.
Steps to Reproduce Behavior
REFERENCESVisual FoxPro Help, version 5.00; search on: "Application" Visual FoxPro Help, version 5.00; search on: "Visible"
Keywords : FxprgClassoop VFoxMac vfoxwin Version : WINDOWS:5.0,5.0a Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |