【发布时间】:2012-08-05 19:31:09
【问题描述】:
我是 Visual C# 的新手,我想在图片框中显示一组图像
这是我的代码:
string[] list = Directory.GetFiles(@"C:\\pictures", "*.jpg");
Image[] images = new Image[5];
for (int index = 0; index < 5; index++)
{
//HERE IS WHERE IM STUCKED WITH
picturebox[index] = Image.FromFile(list[index]);
}
【问题讨论】:
-
什么是图片框!不应该是图片吗?
标签: c# arrays image picturebox