Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

imagelist control help

can anyone guide me, is it possible to delete images from imagecontrol list at run time.i have the key of the image with me.
it shows error because other controls are attached to the imagelist control.

secondly does anybody have an idea how many images an imagelist can handle.i am having 16*16pixel images.

third (hopefully i am not asking much) how can i overlay two images , images which are present in the imagelist control.
i just want to display this overlayed image as image property of node of a tree and dont store these as in the imagelist
[576 byte] By [aks79] at [2007-11-11 8:50:52]
# 1 Re: imagelist control help
1) images cannot be removed from an imageList when the other controls are bound to it
2) depends on both the imageList control and the available memory. there is no easy answer, you have to catch the error when adding images
3) only images in an imageList can be displayed in a treeView
mstraf at 2007-11-11 17:25:02 >
# 2 Re: imagelist control help
can you provide me a code sample how
1)to catch error in case the size is exceeding
2)how can i overlay two images of the imagelist control and thn add this new image to imagelist control.
aks79 at 2007-11-11 17:26:02 >
# 3 Re: imagelist control help
1) use "On Error Goto ..."
2) what do you mean with "overlay two images"
mstraf at 2007-11-11 17:27:01 >
# 4 Re: imagelist control help
overlay means superimposing one pictureon another
anyways thanks buddy
aks79 at 2007-11-11 17:27:57 >