470,644 Members | 1,204 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,644 developers. It's quick & easy.

ImageList

One more quick question. I am creating a form that uses an ImageList
control. I originally wanted to use a PictureBox control to display the
images in the ImageList, but it doesn't seem possible. I found a
work-around and used a Label to display, but I'm interested to know if the
PictureBox can use an ImageList or not? It would seem to make sense...

Thanks,
Michael C.
Nov 16 '05 #1
2 6519
Hi Michael,
One more quick question. I am creating a form that uses an ImageList
control. I originally wanted to use a PictureBox control to display the
images in the ImageList, but it doesn't seem possible. I found a
work-around and used a Label to display, but I'm interested to know if the
PictureBox can use an ImageList or not? It would seem to make sense...

Thanks,
Michael C.


If your images have the same size and their size is less or equal
to 256x256 then ImageList make sense!
But if you want to display images with different sizes or larger
images then you should find the other way.

PictureBox and ImageList sample:

pictureBox1.Image=imageList1.Images[0];

Regards

Marcin
Nov 16 '05 #2
Hi Marcin,

In this instance the images are small icon-ish images - 32x32. I might even
go up tp 64x64 in the future, but should never get up to 256x256.

Thanks,
Michael Coles

"Marcin Grzębski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:ca**********@nemesis.news.tpi.pl...
Hi Michael,
One more quick question. I am creating a form that uses an ImageList
control. I originally wanted to use a PictureBox control to display the
images in the ImageList, but it doesn't seem possible. I found a
work-around and used a Label to display, but I'm interested to know if the PictureBox can use an ImageList or not? It would seem to make sense...

Thanks,
Michael C.


If your images have the same size and their size is less or equal
to 256x256 then ImageList make sense!
But if you want to display images with different sizes or larger
images then you should find the other way.

PictureBox and ImageList sample:

pictureBox1.Image=imageList1.Images[0];

Regards

Marcin

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by A. Solomon | last post: by
2 posts views Thread by Bob C. | last post: by
7 posts views Thread by Andrew Christiansen | last post: by
4 posts views Thread by Just Me | last post: by
6 posts views Thread by henrycortezwu | last post: by
reply views Thread by gene kelley | last post: by
2 posts views Thread by =?Utf-8?B?S2VuTg==?= | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.