首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

.net2005 关于动态new PictrueBox解决方法

2012-02-09 
.net2005 关于动态new PictrueBox.net2005关于动态newPictrueBoxfor(intindex0index10index++){Pictru

.net2005 关于动态new PictrueBox
.net2005   关于动态new   PictrueBox

for(int   index   =   0;   index   <   10;   index++)
{
        PictrueBox   pic1   =   new   PictrueBox;
        ...
}


请问如何动态加载????
PictrueBox   pic[index]   =   new   PictrueBoc;这样是不行的。

[解决办法]
PictrueBox[] pic = new PictrueBox[10]
for(int index = 0; index < 10; index++)
{
PictrueBox pic[i] ...
}

热点排行