This control is use for displaying images on the UI. To display an image in the picture box first bind the image to picture box use any of the following properties:
-ImageLocation= "<path of the image>"
-Image=Image.FromFile("<path of the image>")
When we bind an image to the picture box and control how the picture box will handle image placement and control sizing we are given with property SizeMode. It is an enumerated property that can be set to any of the following:
SizeMode:
- Normal[default]
- Strech Image
- AutoSize
- CenterImage
By default, the picture box control doesn't provide any border we can use the border style property and specify what type of border the picture box control should have. This is also enumerated property that can be set to any other property.
Border Style :
- None[default]
- FixedSingle
- Fixed 3D
No comments:
Post a Comment