for (j = 0; j < Define.CELL_MAX + 1; j++)
{
try
{
PictureBox pb_all = this.panel1.Controls["pb_" + j.ToString()] as PictureBox; //双击
pb_all.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.history_MouseClick);
}
catch
{
Console.WriteLine("Get_Voltage Image Show Error!!!");
}
}
循环获取控件
最新推荐文章于 2023-09-04 14:38:54 发布