Пример #1
0
        //Add PictureBox
        PictureBox AddPictureBox(Color renk)
        {
            PictureBox pb = new PictureBox();

            pb.Size      = new Size(10, 10);
            pb.BackColor = renk;
            pb.Location  = mySnake.GetPosition(snakeParts.Length - 1);
            panel1.Controls.Add(pb);
            return(pb);
        }