PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Problems getting Listview Drag and Drop
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Problems getting Listview Drag and Drop
![]() |
Problems getting Listview Drag and Drop |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello:
In vb.net, I have a a multicolumnar listview in detail view and I want to drag the value of a PARTICULAR cell (listViewSearchResults.FocusedItem.Subitems(1).Text) to something like Microsoft Word. The value dragged will always be a string When I implement Private Sub listViewSearchResults_ItemDrag(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles listViewSearchResults.ItemDrag listViewSearchResults.DoDragDrop(e.Item, DragDropEffects.Copy) End Sub All I get is a symbol like a O with a line through it (obviously failing) Where can I find some code examples on how to get this to work ? I also tried Li = listViewSearchResults.FocusedItem.Subitems(1).Text and pass it as the data instead of the e.Item. I suspect the e.item is what is wrong but I cannot find understandable documentation about this. Thanks Terry |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

