PRB: DBList Shrinks When Toggling Appearance Property
Article ID: 142831
Article Last Modified on 12/9/2003
APPLIES TO
- 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 Q142831
SYMPTOMS
With the DBList's IntegralHeight property set to True (the default)
switching back and forth between the 3D and flat versions of the DBList
control (via the Appearance property) causes the DBList control to shrink
vertically, possibly all the way to a single horizontal line.
CAUSE
When the control's Appearance property is Flat, the control has a certain
number of pixels X for a certain number of rows N, as well as two extra
pixels for the border. When switched to a 3D view, the control still only
uses a maximum of X+2 pixels total but now uses 4 pixels for the border,
and it doesn't have enough space left over for all N rows of data. To
remedy this, the control reduces the number of rows shown by one. Repeating
this numerous times causes row after row to be lost, until no rows are
left, and the control appears as a flat line.
RESOLUTION
After setting the Appearance property to the desired value, resize the
control to the desired proportions.
STATUS
This behavior is by design.
Additional query words: 4.00 3-d vb4win vb4all
Keywords: kbprb KB142831