FIX: Form.ScaleHeight and Form.ScaleWidth Do Not FunctionID: Q180757
|
Changing the ScaleWidth and ScaleHeight properties of a Form does not affect the position of graphical renderings that are drawn with graphical methods such as DrawCircle and DrawLine.
Where possible, use a PictureBox instead of a form to display graphics drawn using the DrawCircle and DrawLine methods.
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
This problem was corrected in Windows CE Toolkit for Visula Basic 6.0.
Private Sub Command1_Click()
Form1.ScaleHeight = Form1.ScaleHeight + 100 ' Set height units.
Form1.ScaleWidth = Form1.ScaleWidth + 100 ' Set width units.
Form1.DrawCircle 500, 500, 250 ' Draw circle.
Form1.DrawLine 0, 0, 1000, 4000 ' Draw line.
End Sub
Additional query words: vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: February 25, 1999