FIX: ZOrder and Aligned Controls
Article ID: 143404
Article Last Modified on 6/23/2005
APPLIES TO
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
This article was previously published under Q143404
SYMPTOMS
Placing a control such as a command button on top of an aligned OCX control
at design time will cause the Command button to fall to the bottom of the
ZOrder at run time and become invisible.
RESOLUTION
Invoke the ZOrder method of the Command button in Form_Load event as in the
sample code below:
Private Sub Form_Load()
Command1.ZOrder 0
End Sub
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
5.0.
Additional query words: kbVBp400bug kbVBp500fix kbVBp kbdsd kbDSupport KbControl
Keywords: kbbug kbfix KB143404