HOWTO: Switching Focus to a Visual FoxPro ApplicationLast reviewed: August 11, 1997Article ID: Q172560 |
The information in this article applies to:
SUMMARYIf you create a local Visual FoxPro OLE Automation Server that displays a user interface (UI), the UI may not have focus when initiated. To force the Visual FoxPro OLE server to have focus you can call the SetForegroundWindow API from the client and pass the window handle of the Visual FoxPro OLE Server.
MORE INFORMATIONWhen calling the Show Method of a Visual FoxPro OLE Server from a client application, such as a Visual Basic executable, the Visual FoxPro UI may not receive focus. Here is a method of forcing the Visual FoxPro OLE Server to have focus and control:
REFERENCESFor more information about the SetForegroundWindow, please refer to the Win32 SDK For more information about the Mainhwnd function, please refer to the Foxtools.hlp in the tools directory that is installed with Visual FoxPro. (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by David Botzenhart, Microsoft Corporation
|
Additional query words: OLE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |