一系列的图片框 [英] Array of pictureboxes
本文介绍了一系列的图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
有没有一种方法可以将预制的图像框添加到数组中。
我在我的项目中使用过pictureboxes,现在我想把它们放在一个数组中。
提前致谢:D $ / $
z3ngew
解决方案
解决方案似乎相对简单,你给我们提供的信息:
PictureBox myPictureBox = new PictureBox();
// 设置PictureBox的所需属性
List< picturebox> boxes = new List< picturebox>();
boxes.Add(myPictureBox);
// 最后
PictureBox [] pictureBoxArray = boxes。 ToArray的();
< / picturebox > < / picturebox >
Hello everyone,
Is there a method of adding premade picturboxes into array.
I have used pictureboxes in my project, now i want to put them in an array.
Thanks in advance:D
z3ngew
解决方案
Hi, solution seems relatively straightforward, with informations you gave us :
PictureBox myPictureBox = new PictureBox(); // Set desired properties of the PictureBox List<picturebox> boxes = new List<picturebox>(); boxes.Add(myPictureBox); //Finally PictureBox[] pictureBoxArray = boxes.ToArray(); </picturebox></picturebox>
这篇关于一系列的图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文