The information in this article applies to:
SYMPTOMSYou can use the AlwaysOnTop property of a Visual FoxPro form in conjunction with a TopLevel form to create an application that prevents other windows from covering the applications window. Changing the AlwaysOnTop property at run-time changes the behavior of the form, but querying the property value always returns .F. This behavior only exists when the ShowWindow property of the form is set to 2 - As TopLevel Form. RESOLUTIONYou can use a custom property and an AlwaysOnTop Assign method to work around this problem. The following code uses a custom form property called AlwaysOnTop_Actual to store the actual setting of the AlwaysOnTop property of the form. The value of this custom property changes in the AlwaysOnTop_Assign method:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why MORE INFORMATIONSteps to Reproduce BehaviorRun the following program code:
Note the querying the AlwaysOnTop property always returns .F.
Additional query words:
Keywords : kbservicepack kbVFp600 kbVFp600bug kbVS600sp2 kbVS600SP1 kbVS600sp3fix |
Last Reviewed: June 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |