c#如何为pictureBox控件写单击事件
作者:互联网
//在构造pictureBox控件的代码区(Form1.Desingner.cs)写入
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//双击窗体设计器进入代码区写入
private void pictureBox1_Click(object sender, EventArgs e)
{
MessageBox.Show("这样就可以了");
}
标签:控件,单击,c#,代码,写入,pictureBox,pictureBox1,Click 来源: https://www.cnblogs.com/z55w/p/10408101.html