title: PictureBox is cutting part of the image when it's landscape
body: <p>So I work on this MDI forms application and I use picture box to show pictures chosen from openFileDialog. However today a user complained about the fact that if the picture is landscape (I made my test with 1920x1200) it really cuts the right end of the picture. Of course the width of the picture box is a lot smaller (440px) but still even for the image that I used for test it cut just a little bit. However this is not acceptable so I want to make the whole image fit the picturebox frame no matter how big it is. </p>
  
  <p>Here is my code for showing the picture :</p>
  
  <pre><code> OpenFileDialog openFileDialog1 = new OpenFileDialog();
  
              openFileDialog1.Filter = "All files (*.jpg)|" + prefixFilter + "*.jpg";
              openFileDialog1.FileName = prefixFilter; 
              openFileDialog1.Title = "Select file";
              openFileDialog1.InitialDirectory = DefaultOpenPath;
              openFileDialog1.FilterIndex = 1;
              openFileDialog1.RestoreDirectory = true;
  
              if (openFileDialog1.ShowDialog() == DialogResult.OK)
              {
                  try
                  {
                      IsImageOpened = true;
                      selectedFile = openFileDialog1.FileName;
                      selectedFileName = openFileDialog1.SafeFileName;
  
                      using (var temp = new Bitmap(openFileDialog1.FileName))
                      {
                          pictureBox1.Image = new Bitmap(temp);
                      }
  
                      int imageWidth = pictureBox1.Image.Width;
                      int picBoxWidth = pictureBox1.Width;
  
                      if (imageWidth != 0 &amp;&amp; picBoxWidth &gt; imageWidth)
                      {
                          pictureBox1.Width = imageWidth;
                      }
                      else
                      {
                          pictureBox1.Width = defaultPicBoxWidth;
                      }
                  }
                  catch (Exception ex)
                  {
                      logger.Error(ex.ToString());
                      IsImageOpened = false;
                      MessageBox.Show("Error loading image!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                  }
              }
  </code></pre>
  
  <p>Here I play with the image width but for different purposes, I don't know if I can use this code or there is some standard way to deal with this problem.</p>
  
  <p>Also my picturebox has <code>SizeMode - Zoom</code>.</p>
  
  <p>P.S</p>
  
  <p>This is the original pic :</p>
  
  <p><img src="https://i.stack.imgur.com/svk8o.png" alt="landscape image"></p>
  
  <p>And this is how the picturebox cuts it at the right side (look for the bushes from the original image - they're gone)</p>
  
  <p><img src="https://i.stack.imgur.com/1HwLq.png" alt="cut off image"></p>