PRB: Align Property Setting Causes Toolbar to Fill the FormLast reviewed: October 30, 1995Article ID: Q137623 |
The information in this article applies to:
SYMPTOMSWhen you change the align property to the left or right position, the control's width stays the same, the height changes to the height of the form, and the control becomes aligned with the desired side.
CAUSEThis is by design. All controls that have an align property behave like This. This includes the 3D panel, ProgressBar, StatusBar, and Toolbar controls. The toolbar control's default align setting is top, so in this case, the toolbar's width is the width of the form. When you change the align property to the left or right, the width stays the same (form's width), and the height becomes equal to the form. As a result, the toolbar takes up the entire form.
RESOLUTIONTo work around this in code, you must set the width or height to the values you want when you change the align property. In addition, You might want to change the toolbar's BorderStyle property to 1-fixed single to make the toolbar border more visible.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |