title: Drawing Multiple Rectangles c#
body: <p>What would be the best way to draw 25 rectangles (5*5) in c#?
  I later need to be able to reach a specific rectangle and change its color, for instance change the color to red if the user inputs the incorrect word.
  Would it be more suitable to create an array of rectangles in this case?</p>
  
  <p>This is what i have so far</p>
  
  <pre><code>Graphics g = pictureBox1.CreateGraphics();
  
  int x =0;
  int y= 0;
  int width = 20;
  int height = 20;
  for (int i = 0; i &lt; 25; i++)
  {
      if (i &lt;= 4)
      {
          g.FillRectangle(Brushes.Blue, x, y, width, height);
          x += 50;
      }
      else if (i &gt; 4)
      {
          y = 50;
          g.FillRectangle(Brushes.Blue, x, y, width, height);
          x += 50;
      }
  }
  </code></pre>