BUG: UserControl's ContainedControls Do Not Inherit ScaleMode
Article ID: 188552
Article Last Modified on 5/13/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q188552
SYMPTOMS
A control in the ContainedControls collection of a UserControl reports its
dimensions and placement in Twips regardless of the ScaleMode setting of
the UserControl or the Parent. Because ScaleMode is inherited elsewhere in
Visual Basic, this behavior is inconsistent.
RESOLUTION
Programmatically, you can use the ScaleX and ScaleY methods to convert the
property values from one ScaleMode to another. Note that this does not
change the actual ScaleMode of the properties. ScaleX and ScaleY are merely
conversion functions. There are no workarounds for how the properties are
reported in the Property Windows.
STATUS
Microsoft 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.
Additional query words: kbDSupport kbDSD kbVBp kbCtrl kbVBp500bug kbVBp600bug
Keywords: kbbug KB188552