picturebox

We use it for displaying images with in the application. To bind an image to the control we can use any of the following properties


ImageLocation = "path of the image"

Image = Image.FromFile(path of the image)

Image = Image.FromStream(Stream stream)

Use BorderStyle property to control what type of border we want for the PictureBox, with any of the following values:


None [d]

FixedSingle

Fixed3D


Use SizeMode property of the control to set image placement and control sizing under the PictureBox which can be set with any of the following values:


Normal [d]

StretchImage

AutoSize

CenterImage


Quantitative Aptitude
Reasoning
Programming
Interview