How do I create a Custom Listview Control in C# that includes Drag and Drop from one Listview to another on the same form?

Posted on 2007-10-16
Last Modified: 2010-04-21
I am using VS2005 on XP.  I need to create a Custom Listview control that includes drag and drop capability between two ListViews on the same form.  The forms are childern of an  mdi form and I am just trying to avoid repeated code for each and every Listview that requires this capability.

Any help showing me how to change from repeating the same drag and drop functionality for each Listview and moving to a custom control that can be used for each child form will be greatly appreciated!
Question by:wpm0001
    LVL 53

    Accepted Solution

    I know how to implement the drag and drop (examples below), but I don't know how to implement this code into a custom object...

    Drag And Drop in ListView

    Custom listview (overriding events)
    Drag and Drop List View
    LVL 1

    Author Comment

    Yeah - I've seen these and more.

    The CodeProject one does so much that I can't get a handle on it and the other one isn't worth anything.  Click anywhere and items are added.  Even I could do that (not that I would of course)!

    I'm increasing the point value.  Anyone?
    LVL 1

    Author Comment

    This was a pathetic and open-ended post.  

    I didn't really get what this place was about and I am sorry about that.  I'll be more reasonable in the future.  Dhaest: deserves the points just for putting up with me...

    LVL 1

    Author Closing Comment

    Sorry for being a boob!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now