PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Problems getting Listview Drag and Drop

Reply

Problems getting Listview Drag and Drop

 
Thread Tools Rate Thread
Old 25-06-2003, 02:04 PM   #1
Support
Guest
 
Posts: n/a
Default Problems getting Listview Drag and Drop


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




  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off