views:

994

answers:

5

best way to show several images on a winform in c#? Datagrid?

A: 

Left a treeview with all the images and mainform the image large? It's kinda hard to guess what you want...

Dean
I didn't know that a tree view could display images without the images being in a imagelist. I will check it out. thanks for the idea.
+2  A: 

Several PictureBoxes :-)

frou
Maybe I could get a blank panel control and add picture boxes to the panel control dynamically. Then I could make the panel control scrollable. I guess it could work.
A: 

My company, Atalasoft, has several win forms controls that can be used for displaying images and thumbnails. There is a typical example of using the thumbnail control here.

plinth
thanks for the info - I will check it out.
A: 

It depends on how many images you want to display, do you want thumbnails or full-resolution images?

I'm going to assume that since you asked for "images", you have many images to display. As such, you'll probably be wanting to use thumbnails on that form, with a different form if you want to display the full-resolution image.

In this case, you'll want to look at the ImageList object in conjunction with the ListView object.

I used this solution in an app recently. It worked out very well.

Jerry
A: 

You can try using an ImageList and binding it to a ListView. You can set the ListView to Tile View state or any other states.

Joaquín M