The picture frame is essential, regardless of which door has the component programming language. C # language is a very rich language, and the picture frame component is naturally indispensable.
The main properties of the picture frame component are:Name,image,SizeMode,BorderStyle .
The Name property is used to set the object names of the picture.
The Image property is used to add a picture.
SizeMode is used to set the size mode of the picture.
BorderStyle The border style used to set the picture.
For example: I drew a picture frame and added a picture. and set the size mode to: Zoom. The border style is:fixed3d.
The main event of the picture box is the Click event, and when we click on the picture frame, we can respond to certain events and make an action. For example, a dialog box pops up.
void Picturebox1click(Objectsender,EventArgse)
{
MessageBox.Show(" Click the picture Frame! ");
}
This article is from the "Smile" blog, please be sure to keep this source http://yiyiweixiao.blog.51cto.com/2476874/1974236
31, C # inside the picture frame PictureBox use