When I draw several images in a loop with some overlapping, like a deck of playing cards, I want the last card to be on top, to see the whole card. Now it’s the first card that is visible. I wonder if there is a way to bring the first card to front or something equal?
for (int i = 1; i < 10; i++)
{
cardGui = new CardGui(i);
cardGui.Location = new Point(10 + (i * 10), 10);
panel1.Controls.Add(cardGui);
}
Try this code after your loop:
This code gives exactly what you asked