FIX: Adding Subitems To Hidden ListView Causes APP Error (142468)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q142468 SYMPTOMS
A 32-bit Visual Basic application with a ListView control can generate an
application error or incorrectly display the subitems if the subitems are
added to a ListView control that is hidden on a form.
RESOLUTION
To eliminate this behavior, use one of the following methods:
If you want your ListView control in the form to be hidden when the form
is shown, toggle the Visible property once before adding the subitems to
the ListView control. To toggle the Visible property, initially set the
Visible property to True and then reset the Visible property to False.
-or-
At design time, set the ListView control Visible property to True. Then in
the first line of code in the form's Load procedure, set the ListView
control Visible property to False.
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.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbBug kbCtrl kbfix kbVBp500fix KB142468 |
---|
|