我正在开发一个 Windows 窗体应用程序,我想将类型参数传递给MouseClick事件而不是,但当我这样做时,调试器会发出委托错误。PictureboxMouseEventArgsEventArgs
void PictureBox1Click(object sender, MouseEventArgs e)
{
// Some code
}
///////
// imageBox
//
this.imageBox.Location = new System.Drawing.Point(12, 12);
this.imageBox.Name = "imageBox";
this.imageBox.Size = new System.Drawing.Size(1758, 829);
this.imageBox.TabIndex = 0;
this.imageBox.TabStop = false;
this.imageBox.Click += new System.EventHandler(this.PictureBox1Click);
//
胡说叔叔
噜噜哒
慕田峪4524236
相关分类