How can I make a scrollabe image list in C# Windows Form?

Hi everyone,

I am working on C# Windows form and am looking for a C# programming to show the scrollable list of images. That is, it could list out images in grid format...

just like the image below:

How could I make use of C# to make that could of image scrollable list? What controls could I use to achieve this? Thank you very much.

Thanks again.

[358 byte] By [kawing0510] at [2007-12-31]
# 1

Hi,

You can try put the images into the datagridview using DataGridViewImageColumn.

see: http://msdn2.microsoft.com/en-us/library/x0tz73t0.aspx

Thank you

FigoFei-MSFT at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

Hi,

Also, you can choose Listview for this purpose.

Drag and drop listview and imagelist, select the imagelist in large image list choices.

Put the images into the imagelist.

Set largeicon to listview's view property.

Add a column to listview.

Then Add items to the ListView (choose image index in the imagelist).

It's done!

If you have further problems, pls feel free to let me know

Thank you

FigoFei-MSFT at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 3

Ok, It reminds to me that another way is also available: put the pictureboxes into the panel.

It quite easy than the previous ones.

Thank you

FigoFei-MSFT at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 4

However, are the panel scrollable? That is, if too many pictures showing in the panel, users could scroll down to view hidden pictures. Could it do that? If not what way I could use to make it "scrollable"?

Thanks.

kawing0510 at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 5

Hi,

Panel control have autoScroll property, if the pictures beyond the size of panel it will generate scroll bar.

What you mean to hidden pictures anyway?

Thanks

FigoFei-MSFT at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 6

Thank you.

"Hidden pictures" just means some pictures that could not be shown due to limited area of panel.

kawing0510 at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 7

Ok. I see. So the picture will display if you set the scroll bar to it.

Thank you

FigoFei-MSFT at 2007-9-6 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...