BUG: Cannot Programmatically Select Items in ListViewLast reviewed: October 8, 1996Article ID: Q143427 |
The information in this article applies to:
SYMPTOMSAfter setting the Selected property of a ListItem in the ListView control to True, the SelectedItem property returns the last item that was selected with a mouse click.
RESOLUTIONThe code below can be used as a workaround instead of Selected = True.
Sub SelectAListItem(iItemToSelect%) Dim Item As ListItem Set Item = ListView1.ListItems(iItemToSelect%) Set ListView1.SelectedItem = Item End Sub STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce
|
Additional reference words: 4.00 vb4win errmsg vb432 listview
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |