title: Random position for picturebox on a panel
body: <p>I want to generate a random position for my PictureBox which is in a Panel. I load my page with C#. This is my code for the PictureBox. How can I have a random position for it?</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {            
      PictureBox pictureboxtroll = new PictureBox();
      pictureboxtroll.Size = new System.Drawing.Size(70, 70);
      pictureboxtroll.BackColor = Color.Green;
      this.Controls.Add(pictureboxtroll);
  }
  </code></pre>