Drag and Drop a card using the DragDrop method
<p>Below is my code for trying to drag a card from a picture box to a panel but it does not work. Can anyone please help me out. When you click on the card and try to move it the cursor changes(like when you select text and move it) but the card doesnt move and it doesnt display when you drop it on the panel.</p>

<pre><code>private void Card_MouseDown(object sender, MouseEventArgs e)
{
      Card.Card source = (Card.Card)(sender);
      DoDragDrop(source,DragDropEffects.Move);
}
private void panel1_DragEnter(object sender, DragEventArgs e)
{
        if (e.Data.GetDataPresent(typeof(Card.Card)))
        {

            e.Effect = DragDropEffects.Move;
        }
        else
        {
            e.Effect = DragDropEffects.None;
        }
}
private void panel1_DragDrop(object sender, DragEventArgs e)
{
            Card.Card dragCard = (Card.Card)sender;
            dragCard = (Card.Card)e.Data.GetData(typeof(Card.Card));

}
</code></pre>
