title: how can i fix the picture box in C#
body: <p>i have 16 picture box in my form design in C# form , and i should choose two random number and put a specific picture on the box related to these random numbers , for example i have two random number like these 8 ,13 and a picture should be put at these places.</p>
  
  <p>for this i write this code:</p>
  
  <pre><code>            Random rnd = new Random();
  
              int p1 = rnd.Next(1, 17);
  
              int p2 = rnd.Next(1, 17);
  
              pcbxp1.BackgroundImage=Image.FromFile(@"C:location\22.jpg");
  </code></pre>
  
  <p>i know this code has error because i call my places like this , pcbx(1.....16)
  and for putting image on it i sholud write like this for example : </p>
  
  <pre><code>      pcbx1.BackgroundImage=Image.FromFile(@"C:\location\22.jpg");
  </code></pre>
  
  <p>and pcbxp1 is wrong (p1 is the first random number)
  how can i put image for picturebox related to random numbers? </p>