title: Drawing a big number of images in C# Windows Forms
body: <p>I'm creating a map editor for game in C# Windows Forms. What I need is a grid that will have to store even a few thousands of images. </p>
  
  <p>My first approach was to create a <code>Panel</code> control and then add multiple <code>PictureBoxes</code> to it. Unfortunately 2000 images took about 3 seconds to draw.</p>
  
  <p>Then I decided to try creating <code>Rectangles</code> and drawing <code>Images</code> on them in <code>Panel</code>'s <code>OnPaint()</code> method in hope to get better results but it's still very slow.</p>
  
  <p>Is there any better, efficient way to render so many images in Windows Forms?</p>
  
  <p>Thanks in advance for any advices.</p>