PictureBox Control



This control is used to display the images to the user on the form, we can display the images like JPEG, BMP, GIFF, ICON images etc

Properties with PictureBox Class

SNO
Property and options
Type
Description
01
Image
ImageClass
Sets or gets the image to be displayed in the picturebox control
02
ImageLocation
string
Sets or gets the file path (Disk Location) of the image to be displayed in the picturebox control
03
SizeMode
    Normal (Default)
    StretchImage
    AutoSize
    CenterImage
enum
Normal: Picturebox and Image will have their own sizes, there do not be any change in image size when picturebox size changes
StretchImage: Image will be scaled to picturebox size, Image size will increase or decrease according to picturebox size
AutoSize: Picturebox will be scaled to Image size, it is not possible to increase or decrease either picturebox size or image size
Center Image: Image will be displayed with in the centre location of picturebox

No comments:

Post a Comment