我无法让我的图片框显示在表单上。我做错了吗?这是我的代码:
static Bitmap[] pictures = new Bitmap[9];
PictureBox[] picBox= new PictureBox[9];
在构造函数上:
pictures[1] = new Bitmap(@"1.1Bright.jpg");
* picBox[1].Location = new System.Drawing.Point(25, 7);
picBox[1].SizeMode = PictureBoxSizeMode.StretchImage;
picBox[1].ClientSize = new Size(53, 40);
picBox[1].Image = pictures[1];
我在 * 上不断收到 nullreferenceexception 错误