title: Why isn't my image loading?
body: <pre><code>    private void LoadImageList()
      {
          string filepath = Application.StartupPath + @"\Content\Textures\Tiles\PlatformTiles.png";
          Bitmap tileSheet = new Bitmap(filepath);
          int tilecount = 0;
  
          for (int y = 0; y &lt; tileSheet.Height / TileGrid.TileHeight; y++)
          {
              for (int x = 0; x &lt; tileSheet.Width / TileGrid.TileWidth; x++)
              {
                  Bitmap newBitmap = tileSheet.Clone(
                      new System.Drawing.Rectangle(
                          x * TileGrid.TileWidth,
                          y * TileGrid.TileHeight,
                          TileGrid.TileWidth,
                          TileGrid.TileHeight),
                          System.Drawing.Imaging.PixelFormat.DontCare);
  
                  imgListTiles.Images.Add(newBitmap);
                  string itemName = "";
                  if (tilecount == 0)
                  {
                      itemName = "Empty";
                  }
                  if (tilecount == 1)
                  {
                      itemName = "White";
                  }
                  listTiles.Items.Add(new ListViewItem(itemName, tilecount++));
              }
          }
      }
  </code></pre>
  
  <p>All I did was update PlatformTiles.png with a newer one and the next time I ran the program it doesn't load. I placed a breakpoint at <em>int tilecount = 0;</em> and it doesn't ever reach it. Every thing after it doesn't load either. Any ideas?</p>