title: PictureBox.BackgroundImageLayout change fails
body: <p>I am using Visual Studio 2010 and writing a simple project in c#. I have a picture box and two buttons. When one button is pressed, the image in picture box is changed, but I cannot change the background image layout property. In button callback is something like:</p>
  
  <pre><code>pictureBox1.BackgroundImage = Image.FromFile("test.jpg");  
  pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
  </code></pre>
  
  <p>The image is changed, but it is not stretched over picture box. In fact, only part of the image that fits in picture box is shown.</p>
  
  <p>Any suggestions?</p>
  
  <p>UPDATE</p>
  
  <p>It was my mistake. The call in button callback was actually:</p>
  
  <p><code>pictureBox1.Image = Image.FromFile("test.jpg");<br>
  pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;</code></p>
  
  <p>instead of upper statement.</p>