title: Windows Forms PictureBox - how to display the image in a certain area of the form
body: <p>I'm using the following code to open and display image in one of my forms using <code>fileDialog</code> :</p>
  
  <pre><code>private void btnExplorer_Click(object sender, EventArgs e)
          {
              OpenFileDialog openFileDialog1 = new OpenFileDialog();
  
              openFileDialog1.InitialDirectory = "c:\\";
              openFileDialog1.Filter = "All files (*.*)|*.*";
              openFileDialog1.FilterIndex = 2;
              openFileDialog1.RestoreDirectory = true;
  
              if (openFileDialog1.ShowDialog() == DialogResult.OK)
              {
                  try
                  {
                      PictureBox PictureBox1 = new PictureBox();
                      PictureBox1.Image = new Bitmap(openFileDialog1.FileName);
                      // Add the new control to its parent's controls collection
                      this.Controls.Add(PictureBox1);
                  }
                  catch (Exception ex)
                  {
                      MessageBox.Show("Error loading image" + ex.Message);
                  }
              }
          }
  </code></pre>
  
  <p>The problem is that my image is shown at the top left corner of my form, when I have left almost quarter of my down-right side for this purpose. How can I show it there?</p>