阅读背景:

如何在C#中创建存储PictureBox名称的数组

来源:互联网 

I want to create an array of picturebox names, which I will later use in a FOREACH loop and do a certain thing to each picturebox instead of having to write the code for all of the pictureboxes separately. In another solution the code below worked, but here it only returns an error: "A field initializer cannot reference the non-static field, method, or property 'Puzzle.Form1.pic1'"I want to create an array of picturebox names,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: