using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
privatevoid Form1_Load(object sender, EventArgs e)
{
PictureBox[] picturebox = new PictureBox[8000];
int y = 10;
int x = 10;
for (int index = 0; index < 8000; index++)
{
Controls.Add(picturebox[index]);
picturebox[index].Location = new Point(x, y);
picturebox[index].Size = new Size(10, 10);
picturebox[index].Image = imageList1.Images[0];
x = x + 10;
if (x == 650)
{
y = y + 10;
x = 10;
}
}
}
}
}