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
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
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)
 

kulrom

Well-known member
Joined
May 10, 2005
Messages
2,854
Location
Republic of Macedonia
Programming Experience
10+
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 ;)
 

fainaqvi

Member
Joined
Aug 23, 2005
Messages
5
Programming Experience
1-3
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
 
Top Bottom