FIX: Neg ScaleHeight Resizes Control When Form Saved as ASCII (95513)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q95513 SYMPTOMS
If you set the ScaleHeight or ScaleWidth property of a container to a
negative value, the Height or Width property of all child controls are
saved incorrectly if the form is saved in ASCII format. When you re-load a
form or its project that was previously saved in ASCII format, it may look
like controls on the container have been removed. Actually, the child
controls still exist, but their Height and Width properties were saved
incorrectly, which results in significantly smaller controls.
WORKAROUND
To work around the problem:
- Resize the controls to their original size by using the mouse. You must
use the mouse; you cannot resize the controls by changing the Height and
Width properties in the Property window. Click the lower right-hand
corner of the control and drag it down or to the right to make the
control taller or wider, respectively.
- Save the form in binary format. From the File menu, choose Save Project
(ALT, F, V) and clear the Save as Text check box option.
STATUS
Microsoft has confirmed this to be a bug in both the Standard and
Professional Editions of Microsoft Visual Basic versions 2.0 and 3.0
for Windows. This problem has been corrected in Visual Basic version 4.0.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbbug kbfix KB95513 |
---|
|