BUG: CreateDragImage Method in ListView Uses Wrong IconLast reviewed: August 4, 1997Article ID: Q172057 |
The information in this article applies to:
SYMPTOMSWhen dragging a selection from the ListView control, the icon for the first item in the list is displayed during the drag operation. This problem occurs when the CreateDragImage method is used.
RESOLUTIONTo work around this problem, it is necessary to extract the correct icon from the image list that provides the icons for the ListView. For example, if the original line of code reads:
ListView1.DragIcon = ListView1.SelectedItem.CreateDragImagechange it to read:
ListView1.DragIcon= _ ImageList1.ListImages(ListView1.SelectedItem.Index).ExtractIcon STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : vb5all Version : 5.0 Platform : WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |