There is one win forms application with some list view items.
I’d like to drag several selected items from that app to my another win forms app.
Each list view item should contain some custom data and recieving app needs to get it also.
There is one win forms application with some list view items. I’d like to
Share
For a lengthy example, see MSDN, Control.DoDragDrop Method. Important for your specific task is
yourDragSourceControl.DoDragDrop(data, effects)with the data you want to transfer to the drop target. You can specify any serializable object or a string.var data = (YourDTO)e.Data.GetData(typeof(YourDTO));