BUG: OLE Drag Disabled When ListBox Has Multiple Columns (181891)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q181891 SYMPTOMS
A listbox control is set to more than one column and the OLEDragMode
property is set to Automatic to allow for OLE Drag-and-Drop. When you
attempt to drag an item to another control from any column of the listbox
other than the first, the item is not copied to the target control as
expected.
RESOLUTION
To work around this problem, initiate the drag from the listbox using the
OLEDrag method.
For example, you would add code such as the following to the MouseDown
event of the "multi-column" listbox:
Private Sub List1_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
List1.OLEDrag
End Sub
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug kbpending KB181891 |
---|
|