2009/04/05(Sun) 01:03:07 編集(投稿者)
public partial class Form1 : Form
{
PictureBox[] pictureBox;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
pictureBox = new PictureBox[10];
for (int i = 0; i < 10; i++)
{
this.pictureBox[i] = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox[i])).BeginInit();
this.pictureBox[i].Location = new System.Drawing.Point(33 + i * 10, 36 + i * 10);
this.pictureBox[i].Name = "pictureBox[i]";
this.pictureBox[i].Size = new System.Drawing.Size(200, 200);
this.pictureBox[i].TabIndex = 0;
this.pictureBox[i].TabStop = false;
}
}
}
ソースちょっとかえて実行したけどエラーなんてでなかったよ。
>this.pictureBox[i].Name = "pictureBox[i]";
後、ここ間違えてます、