title: Drag and Drop Windows Forms: Controls disappear after dragging
body: <p>I need to drag labels between the panels. But when I'm trying to drop a label even within the initial panel, it disappears. Here is the code of the methods I use:</p>
  
  <pre><code>private void label1_MouseDown(object sender, MouseEventArgs e)
  {
       if (e.Button == MouseButtons.Left)
       DoDragDrop(sender, DragDropEffects.All);
  }
  
  
  private void panel_DragEnter(object sender, DragEventArgs e)
  {
      e.Effect = DragDropEffects.All;
  }
  
  
  private void panel_DragDrop(object sender, DragEventArgs e)
  {
      Label src = e.Data.GetData(typeof(Label)) as Label;
      src.Location = PointToClient(new Point(e.X, e.Y));
  }
  </code></pre>
  
  <p>AllowDrop is enabled for the panels. Why do the labels disappear and how can I fix it?</p>