PDA

Click to See Complete Forum and Search --> : loading pictures into a imagelist control at runtime


David_C
Aug 1st, 1999, 04:34 PM
I used the "Extract Icons From Files" tip to extract an icon from a DLL or EXE, but when I try to load the icon into an Imagelist at runtime I get an "Out of Memory" error message, how do I get around that.

manh2000
Aug 1st, 1999, 08:35 PM
Check this out: http://www.vb-world.net/ubb/Forum1/HTML/006045.html

or change

imagelist1.add , , picture1.image

[This message has been edited by manh2000 (edited 08-02-1999).]

tizzy
Aug 3rd, 1999, 12:19 AM
as far as I know you can't. You can't add a picture to an ImageList control when another control is referenced to it e.g. a toolbar. I may be wrong, but I can't do it.