BUG: ScaleLeft and ScaleTop Do Not FunctionLast reviewed: February 6, 1998Article ID: Q180634 |
The information in this article applies to:
SYMPTOMSThe ScaleLeft and ScaleTop properties of a Form object do not affect the position of graphical renderings that are drawn with graphical methods such as DrawLine and DrawCircle. In addition, the ScaleLeft and ScaleTop properties of a PictureBox object do not affect the position of graphical renderings that are drawn with graphical methods such as DrawLine and DrawCircle unless the methods are used in conjunction with the ScaleHeight and ScaleWidth properties.
RESOLUTIONFor a PictureBox control, use the ScaleHeight and ScaleWidth properties in conjunction with the ScaleTop and ScaleLeft properties. For example:
Private Sub Command1_Click() PictureBox1.ScaleTop = 100 PictureBox1.ScaleLeft = -100 PictureBox1.ScaleHeight = -200 PictureBox1.ScaleWidth = 200 PictureBox1.DraweLine 0, 0, 50, 50 End SubIf you do not have a PictureBox control visible in your Control Toolbox, do the following:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : vb5all vbce Version : WINDOWS:1.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |