循环向flowLayoutPanel中添加控件
while(int i=0;i<10;i++)
{
PictureBox picture = new PictureBox();
picture.Image = this.imageList1.Images[i];
picture.Tag = i;
this.flowLayoutPanel1.Controls.Add(picture);
}
之后我想更改某个(比如第2个)PictureBox的图片,更改

((PictureBox)this.flowLayoutPanel1.Controls[2]).Image = ...

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2021-07-24
  • 2021-09-21
  • 2021-09-17
  • 2021-09-27
  • 2021-10-01
相关资源
相似解决方案