title: Drag and drop listview C#
body: <p>Hi how to I enable drag event handler when I double click on the listview?</p>
  
  <p>This is what I get after double-clicking on the listview</p>
  
  <pre><code>private void listView1(object sender, EventArgs e)
  </code></pre>
  
  <p>However, I want it to be </p>
  
  <pre><code>private void listView(object sender,DragEventArgs e)
  </code></pre>
  
  <p>How to I do it..?</p>
  
  <p>I have tried many way such as:</p>
  
  <pre><code>  private void Form_Load(object sender, EventArgs e)
    {
        // Enable drag and drop for this form
        // (this can also be applied to any controls)
        this.AllowDrop = true;
  
        // Add event handlers for the drag &amp; drop functionality
        this.DragEnter += new DragEventHandler(Form_DragEnter);
        this.DragDrop += new DragEventHandler(Form_DragDrop);
   }
  </code></pre>