PictureBox component

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Hi,

I am designing a Picture Viewer application. I have a
problem to find a way for fitting the whole high
resolution picture into the form by using a picture box
component. What I want to do is to use the whole form for
displaying the whole picture so that the whole picture
will possess the screen. I set the Form.WindowState to
maximized and PictureBox.Doc to Fill. I have tried the
different value of the sizemode. The windows just contain
part of the picture. Is there anyway that I can display
the whole picture in a window? You advice is greatly
appreciated.

Thank you.

Eric
 
Have you set the PictureBox.SizeMode to StretchImage

This will display all of the image in the PictureBox regardless of the size and shape of the image

HT

RS
 
Hi PocketNerd,

Thanks for the reply. I had tried the PictureBox.SizeMode to
StretchImage and other value, but it does not work. As the size of the
picture is bigger than the window and my screen and the pictureBox.dock
is set to fill. The Window just show part of the picture. The whole idea
is to display the picture proportionally to the size of the window.

Thanks.

Eric
 
Back
Top