Hi,
Set the PictureBox's Width and Height with it's Image's Width and Height:
pictureBox1.Width = pictureBox1.Image.Width; pictureBox1.Height = pictureBox1.Image.Height;
// Or
pictureBox1.Size = new Size(pictureBox1.Image.Width,pictureBox1.Image.Height);
Alternatively, if your Image is stored on an Image variable, set the size of your PictureBox like this:
pictureBox1.Width = myImage.Width; pictureBox1.Height = myImage.Height;
// Or
pictureBox1.Size = new Size(myImage.Width,myImage.Height);
Regards,
-chris |