title: Moving images from a dynamic list PictureBox
body: <p>I am initiating me into programming thanks to Stack Overflow.
  The game I'm doing in c #, consists of several bees flying around the desktop, which I have to give Click and SCORE is going to increase by a certain time.
  To which I did the following:</p>
  
  <ul>
  <li>Create a list PictureBox dynamically (at runtime): OK</li>
  <li>Load PictureBox with these GIF images randomly: OK</li>
  </ul>
  
  <p>![Bee Games][1]</p>
  
  <p>In this part I was stuck:</p>
  
  <ul>
  <li>Place these randomly PictureBox (in the bottom of the form).</li>
  <li>Make the PictureBox move randomly (more or less marked routes).</li>
  <li>each PictureBox Click Event, Change the PictureBox image and hide (visible = false), and increase in SCORE + 1.</li>
  </ul>
  
  <p>I need help please.
  My code is as follows:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using System.IO;
  
  namespace MiPrimerJuego
  {
      public partial class Form1 : Form
      {        
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              int x = 20;
              int y = 600;
              List&lt;System.Windows.Forms.PictureBox&gt; objeto = new List&lt;PictureBox&gt;();
              for (int i = 0; i &lt; 10; i++, x += 90)
              {
                  PictureBox pBox = new PictureBox();                
                  pBox.Height = 80;
                  pBox.Width = 50;
                  pBox.Location = new System.Drawing.Point(x, y);
                  objeto.Add(pBox);
                  pBox.SizeMode = PictureBoxSizeMode.StretchImage;                
                  Controls.Add(pBox);
  
                  var rand = new Random();
                  var files = Directory.GetFiles(Application.StartupPath + @"/Images", "*.gif");
                  pBox.Image = System.Drawing.Bitmap.FromFile(files[rand.Next(files.Length)]);
              }
          }        
      }
  }
  </code></pre>