title: listview thumbnails repeating c#
body: <p>I'm trying to populate a listview box with thumbnails you can select to bring up a preview.</p>
  
  <p>The listview populates with the correct amount of images, tagged with the correct filepath, but the thumbnail for each is a repetition of the first indexed image in the linked imagelist. (see attached code)</p>
  
  <pre><code>    private void PopulateList()
      {
          DirectoryInfo dir = new DirectoryInfo(@"C:\Temp\Snapshots");
  
          this.listImages.View = View.LargeIcon;
          this.imageList1.ImageSize = new Size(140, 100);
          this.listImages.LargeImageList = this.imageList1;
          int j = 0;
  
          foreach (FileInfo file in dir.GetFiles())
          {                
              try
              {
                  ListViewItem item = new ListViewItem();
                  item.ImageIndex = j;
                  item.Tag = file.FullName;
                  this.imageList1.Images.Add(Image.FromFile(file.FullName));
                  this.listImages.Items.Add(item);
                  j = j++;
                  //fixed by changing above line to
                  //j = (j+1);            
              }
              catch
              {
  
              }
          }            
      }
  </code></pre>
  
  <p>Any assistance would be greatly appreciated, I feel like I'm missing something really simple...</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: Fix in code as comment</p>