FIX: ListView and Item Spacing
Article ID: 143406
Article Last Modified on 12/9/2003
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 Q143406
SYMPTOMS
The spacing between items in the ListView control changes, getting closer
together when you change the BorderStyle property after adding listitems to
the listview control. The problem occurs for Icon and SmallIcon views when
the items include images.
RESOLUTION
You can work around this problem by setting the Arrange property to
lvwAutoLeft or lvwAutoTop after setting the BorderStyle property and before
adding listitems to the listview control.
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 kbCtrl
Keywords: kbbug kbfix KB143406