FIX: TOP and LEFT Properties Do not Reset to Default

Last reviewed: October 29, 1997
Article ID: Q135328
3.00 3.00b WINDOWS kbtool kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

When designing a form in Visual FoxPro, you can move the form to any part of the screen by changing the Top or Left property to a number greater than zero. If the form is changed from its default position of the upper-left corner using this method, the user is supposed to be able to return the form to its original position by choosing the Top and/or Left property, clicking the secondary mouse button, and clicking the Reset to Default option. The problem is that if you choose the Reset to Default option, a negative number appears in the property box and the form is moved past the upper-left corner and off the screen.

There is no way to move the form back to the original default position while modifying it unless zero is typed into the Top and/or Left property box. If the form is run while in this position, it returns to the original default position when shown on the desktop. Modifying the form after running it shows the form returned to its original default position.

WORKAROUND

Type zero in the Top property of the form in the form's properties box. This will move the form back to its original position.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a form in Visual FoxPro.

  2. In the properties box, click the Layout tab, and type 100 in the Top property box. The form will move down from the top of the screen after pressing ENTER to accept the number.

  3. Click the secondary mouse button while the pointer is resting on the Top property.

  4. Click the Reset to Default option in the popup box.

  5. Note that the number is reset to a negative number, and the form is positioned off the screen.

  6. Type 0 in the Top property box, and watch the form return to the upper-left corner.


KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: FxtoolFormdes VFoxWin buglist3.00 buglist3.00b fixlist5.00
Additional reference words: 3.00 3.00b
Keywords : buglist3.00 buglist3.00b fixlist5.00 FxtoolFormdes vfoxwin kbbuglist kbfixlist kbtool
Version : 3.00 3.00b
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.