This program show two card deck. I want to move on card (picturbox14) to the other card deck(440,50) and then, after 2 seconds i want to place it behinde the other card deck. When I dont have a delay (thread.sleep) the card moves just fine but of course it goes directly to the back of the other deck. But when i have a timer the card is shown above boths deck first and then after 2 seconds it goes to the back like it should. How do i change it's position then wait and then let it go to the back of the deck without it to show on both decks first?
void PictureBox2Click(object sender, EventArgs e)
{
pictureBox14.Location= new Point(440,50);
pictureBox2.BackgroundImage = olikakort[färg];
System.Threading.Thread.Sleep(2000);
pictureBox14.SendToBack();
}