Problems getting Listview Drag and Drop

S

Support

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top