Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
4.80/5 (2 votes)
See more:
hi all
i displayed images from folder in listview in winform using this code
C#
DirectoryInfo dir = new DirectoryInfo(@"D:\image");
        foreach (FileInfo file in dir.GetFiles())
        {
            this.imageList1.Images.Add(Image.FromFile(file.FullName));
        }
        for (int j = 0; j < this.imageList1.Images.Count; j++)
        {
            ListViewItem item = new ListViewItem();
            item.ImageIndex = j;
            this.listView1.Items.Add(item);

        }

and i want to display the name of image with image and enable user to make zoom for image but i do not know how to display name and make zoom
please help
thank u
Posted
Comments
Volynsky Alex 14-Oct-12 11:08am    
I hope this will help you:
http://www.codeproject.com/Articles/10096/PictureBox-with-zooming-and-scrolling
http://www.codeproject.com/Articles/15373/A-scrollable-zoomable-and-scalable-picture-box
http://www.codeproject.com/Articles/12331/ImageBox-Control-with-Zoom-Pan-Capability
http://www.codeproject.com/Articles/10738/Zoomer-Capture-Zoom-Add-Filter-Choose-Format-Save
http://stackoverflow.com/questions/333589/image-resizing-in-net-with-antialiasing

1 solution

ImageListView is a .NET 2.0 control for displaying a list of image files:
ImageListView[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900