public void DisplayNewCard(int player, Card card, bool faceDown) { PictureBox image = new PictureBox(); image.Size = new Size(98, 150); image.SizeMode = PictureBoxSizeMode.StretchImage; image.Anchor = AnchorStyles.None; String imageString = card.ToString(); string path1 = System.IO.Path.GetFullPath("images/cards/back.png"); string path2 = System.IO.Path.GetFullPath("images/cards/" + imageString + ".png"); if (faceDown) { image.Image = Image.FromFile(path1); } else { image.Image = Image.FromFile(path2); } if (player == 1) { image.Image.RotateFlip(RotateFlipType.Rotate180FlipNone); flowLayoutPanelDealer.Controls.Add(image); } else { flowLayoutPanelPlayer.Controls.Add(image); } }