Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void btnZoom_Click(object sender, EventArgs e)
- {
- ImageList imgs = new ImageList();
- imgs.ImageSize = new Size(100, 100);
- string[] paths = { };
- paths = Directory.GetFiles("TestFolder");
- try
- {
- foreach (string path in paths)
- {
- imgs.Images.Add(Image.FromFile(path));
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- listView1.SmallImageList = imgs;
- listView1.Items.Add("2",0);
- }
Add Comment
Please, Sign In to add comment