Article ID: 194612 - Last Review: March 7, 2005 - Revision: 1.1 FIX: AlwaysOnTop Property Always Returns .F. For TopLevel FormsThis article was previously published under Q194612 On This PageSYMPTOMS
You 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.
RESOLUTION
You 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 that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: MORE INFORMATIONSteps to Reproduce BehaviorRun the following program code: | Article Translations
|

Back to the top
