作用:展示图片,同时也具有click属性,可用充当按钮功能。
常用属性:
设置图片

设置图片的填充模式

常用事件:

后台代码示范:增加点击事件
cs
private void pictureBox1_Click(object sender, EventArgs e)
{
//转换发送者对象
pictureBox1 = sender as PictureBox;
//输出控件名称
MessageBox.Show(pictureBox1.Name);
}