picturebox and imagelist

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,530
Location
Lansing, MI; USA
Programming Experience
10+
i know there's got to be a way to do this, but i've added an imagelist to the form and it has a 7x7 pixel image @ location 0

programically i've got a picturebox and i would like to have it display the image that's stored in the imagelist

such as Picturebox1.Image = ImageList1.Images(0)
but it tells me that there isnt a reference to an instance of the imagelist

this works for the toolbar control mind you

what am i doing wrong?
 
dumb me, i forgot to instanciate the picturebox everything works fine now
 
Last edited:
Back
Top