I have some images that i added to imageList Cotrol manually.
Now i need remove thart images from imageList depending on the key index and set as panel backgroud.
How should i do it
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Imagesthat you added in Image list are added to the ImageList.ImageCollection, so it is collection type then you can use most of the collection methods.Use the Images property to add, remove and access the image to display in background of panel.
Add(key,image)
Remove()
RemoveAt()
RemoveByKey()
Check the example on the ImageList Class documentation to understand that how pragmatically use all of these methods.
Add Image:
Remove Image from collection:
To access images, get image from the imagecollection
or