Using ImageList

fainaqvi

Member
Joined
Aug 23, 2005
Messages
5
Programming Experience
1-3
Hi,
any one please tell main how can i call pictures stored in imagelist in PictureBox
Please Help Me
 
Picturebox1.Image = ImageList1.Image(Index)

where index is the number of the image that's listed in the ImageList

so say you have three images in an imagelist and you want to display the middle one in the picturebox it would be: Picturebox1.Image = ImageList1.Image(1)
 
Or through designer ... open Properties window and ...actually pictures from below are explaining by itsself

Imagelist.png
ImageIndex.png


Means, first fill imageList then first select certain imageList as you can more than one in project and now just select imageIndex ... that's it
palec.gif


Regards ;)
 
Using

Hi,
Thankx for ur replies but when i call picture(gif) inpicturebox frim imagelist gif format is not working itz not animating itz show gif as a still picture like jpg
 
Back
Top