468,740 Members | 2,035 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,740 developers. It's quick & easy.

ListView Drag Problem

Dear Group

How am I going wrong with this drag and drop procedure..

private void ResourceList_ItemDrag(object sender, System.Windows.Forms.ItemDragEventArgs e

System.Windows.Forms.ListView ListView = (System.Windows.Forms.ListView)sender
System.Collections.ArrayList ListItemArrayList = new ArrayList()

foreach(System.Windows.Forms.ListViewItem Item in ListView.SelectedItems

ListItemArrayList.Add(Item)
ListView.DoDragDrop(new DataObject("System.Collections.ArrayList", ListItemArrayList), DragDropEffects.Copy);
When I drag an item from the ListView control the event is handled by the code above, however the control is stopping the item from being dragged.

I am assuming the item isn't being dragged as the icon looks like a black circle with a line through it.
Is this normal and do I need to change the icon manually

Best regards

Jim...
Nov 16 '05 #1
1 2393
Problem Solved

Thanks..

Jim...
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim McLeod | last post: by
3 posts views Thread by OpticTygre | last post: by
2 posts views Thread by TarheelsFan | last post: by
3 posts views Thread by Michael.Suarez | last post: by
2 posts views Thread by Ivan Sammut | last post: by
12 posts views Thread by garyusenet | last post: by
1 post views Thread by Diego F. | last post: by
2 posts views Thread by Tom Bean | last post: by
12 posts views Thread by Tom Bean | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.