1.

What Is The Function Of The Sizemode Property Of The Picturebox Control?

Answer»

The SizeMode property DETERMINES how the picture will be displayed in the PICTUREBOX control. The following five enumerations are used to SET the value of the SizeMode property:

  1. Normal - Represents Standard picture box behavior (the upper-left corner of the image is PLACED at upper-left in the picture box)
  2. StretchImage - Displays image according the PictureBox size
  3. AutoSize - Increases or decreases the picture size automatically as per the actual size of the PictureBox control.
  4. CenterImage - Displays the image in the center if it is SMALLER than the PictureBox control; otherwise, the center part of the image is placed in the PictureBox control and its outside edges are clipped
  5. Zoom - Helps in stretching or shrinking the image so that it fits the PictureBox control, by maintaining the aspect ratio of the image.

The SizeMode property determines how the picture will be displayed in the PictureBox control. The following five enumerations are used to set the value of the SizeMode property:



Discussion

No Comment Found