Avatar of Ameerh24
Ameerh24 asked on

how to get selected image from image list and place it into picturebox?

hi,
I have imagelist control in vs2005 filled with 5 images for example,
now what I want to do is that when I click to any image in this imagelist control, I want to place select image into picturebox control,
anyway to do it?
.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
Ameerh24

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jorge Paulino

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Ameerh24

but I want this not in separate button,
I want it when click into specified image from the imagelist control
for example, suppose I have the wolowing imagelist
1
2
3
4
5
(where each number represent an image)
and I click in image 3, then picturebox's image property will take image number 3 from imagelist
Jorge Paulino


The imagelist control is not visible in runtime. You have to use some other control or event to use that information.

You're using winforms, right ?
ASKER
Ameerh24

yes,
and I fill it with 5 bitmaps
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Jorge Paulino

Have you tried to click on the imagelist in run time ? It's not available!
You must use another control for that , like a button.
ASKER
Ameerh24

yes, I did it for viewlist control