string value = "";
foreach (Control item in this.Controls)
{
if (item is PictureBox)
{
if (((PictureBox)item).Image==null)
{
value += ((PictureBox)item).Name + ',';
}
}
}
MessageBox.Show("控件" + value + "无图片");