110,533
社区成员
发帖
与我相关
我的任务
分享
string ctlName = string.Empty;//控件的名称
var controls = this.Controls.Find(ctlName, true);
foreach (Control ctl in controls)
{
if (ctl is PictureBox)
{
PictureBox pictureBox = ctl as PictureBox;
pictureBox.Image = Image.FromFile("xxx");
}
}