.NET Programming
 

     
Stretch an Image on a PictureBox

Keywords: Stretch Image pictureBox BackgroundImageLayout ImageLayout Stretch BackgroundImage

 

 
 

        // Usage the Background Image instead of the Image property

        // Set the BackgroundImageLayout to Stretch

        pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;

        pictureBox1.BackgroundImage = imageList1.Images[1];


 


 PTerryWave LLC      Return to Programming Listing
About