title: Display 4 picturebox 1 by 1
body: <p>So I have a button and 4 pictureboxes and when I click the button I want to add on the first picturebox 1 picture and if I click the button the second time I want to make the picturebox2 = picturebox1 and the picturebox1 = the new image and so on until 4
  This is what I did so far but it's not working, it shows me on the all 4 pictureboxes the same image:</p>
  
  <pre><code>namespace ImageUploadAndCameraUse
  {
      public partial class Form1 : Form
      {
          Image File;
          Image File2;
          Image File3;
          Image File4;
  
          bool button1Click = true;
          bool button1Click2 = true;
          bool button1Click3 = true;
          bool button1Click4 = true;
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              OpenFileDialog f = new OpenFileDialog();
              f.Filter = "Image files (*.jpg, *.jpeg, *.jpe, *.jfif, *.png) | *.jpg; *.jpeg; *.jpe; *.jfif; *.png";
  
              bool IsNullOrEmpty1 = false;
              bool IsNullOrEmpty2 = false;
              bool IsNullOrEmpty3 = false;
  
              if (f.ShowDialog() == DialogResult.OK)
              {
                  if (button1Click)
                  {
                      File = Image.FromFile(f.FileName);
                      pictureBox1.Image = File;
  
                      IsNullOrEmpty1 = true;
                      button1Click = false;
                  }
                  if (IsNullOrEmpty1 &amp;&amp; button1Click2 )
                  {
                      File2 = Image.FromFile(f.FileName);
                      pictureBox2.Image = pictureBox1.Image;
                      pictureBox1.Image = File2;
  
                      IsNullOrEmpty2 = true;
                      button1Click2 = false;
                  }
                  if (IsNullOrEmpty2 &amp;&amp; button1Click3)
                  {
                      File3 = Image.FromFile(f.FileName);
                      pictureBox3.Image = File3;
                      IsNullOrEmpty3 = true;
                      button1Click3 = false;
                  }
                  if (IsNullOrEmpty3 &amp;&amp; button1Click4)
                  {
                      File4 = Image.FromFile(f.FileName);
                      pictureBox4.Image = File4;
                      button1Click4 = false;
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>And also If you know: How can I make this program to use the device camera to take a photo if you dont have anything in any picturebox / the folder I will create to store all these photos.</p>