private void btnGo_Click(object sender, EventArgs e)
{
int num = int.Parse(txtNum.Text);
Bitmap bitmap = new Bitmap(); // 你的圖片在這指定
PictureBox[] pictures = new PictureBox[num];
for (int i = 0; i < num; i++)
{
pictures[i] = new PictureBox();
pictures[i].Size = bitmap.Size;
pictures[i].Location = new Point(bitmap.Size.Width * i, 100);
pictures[i].Image = bitmap;
this.Controls.Add(pictures[i]);
}
}
不過這只是個開始 還有些問題需要解決喔 :)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.121.224.251