Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Imagelist and PictureBox

Status
Not open for further replies.

razorjr

Programmer
Sep 23, 2006
6
MY
im really a beginner user
look,i have a problem

in visual basic 6.0 i created :-
one image
one imagelist
a button to display an index of imagelist

so here the code

i put a background image for Image1
then i inserted 5 picture after right click at ImageList1 at form

so,if want to display picture index no 2
i implement this code

Image1.Picture = ImageList1.ListImages(2).Picture

----------
So,now i using Visual C++ Ekpress
i create one picture box ( Picturebox1)
and imagelist and button.(ImageList1 , Button1)

so i put same 5 picture there at imagelist but i still don't get the code how to display it when i try to display image from ImageList1.btw i can't find Image component to use.so i used PictureBox1

thx
 
im using .NET forms

by the way i found this

PictureBox1->Image = ImageList1->Images[index];

and i think my problem solved because it shows the correct image in my imagelist1 to appear at picturebox1.thanks.but if has different method tell me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top