ImageList

M

Michael C

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.
 
?

=?ISO-8859-2?Q?Marcin_Grz=EAbski?=

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
 
M

Michael C

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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top