Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void PopulateThumbnails(List<string> queryResults)
- {
- this.playerListView.Items.Clear();
- this.imageList1.Images.Clear();
- ImageViewer imageViewer = new ImageViewer();
- foreach (string file in queryResults)
- {
- try
- this.imageList1.Images.Add(Image.FromFile(file));
- catch
- Console.WriteLine("This is not an image file");
- }
- this.ListView.View = View.LargeIcon;
- this.imageList1.ImageSize = new Size(256, 144);
- this.ListView.LargeImageList = this.imageList1;
- for (int j = 0; j < this.imageList1.Images.Count; j++)
- {
- ListViewItem item = new ListViewItem();
- item.ImageIndex = j;
- this.ListView.Items.Add(item);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement