ImageList

flash07
10-02-2001, 06:12 PM
I want to add another image into ImageList control, but I received this error: "ImageList cannot be modified while another control is bound to it"
In my program I also have vbalImageList control attached.
Anyone knows the solution?

cheers

orufet
10-02-2001, 06:16 PM
Is this at run time or design time?

My guess would be design time....Try detaching all comtrols from it (so that there are NO refrences to it whatsoever), then try adding another image....It should work. Remember to reattach the other controls to it when you're done.

"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

flash07
10-02-2001, 06:19 PM
I want to add it at design time.
What controls shall I detach from MDI form?

orufet
10-02-2001, 06:26 PM
MDI Form? Where does this come into the problem? You didn't mention that before....

"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

flash07
10-02-2001, 06:31 PM
Sorry I meant, on my MDI Form I attached ImageList and vbalImageList controls for the Toolbar's icons, and now I want to add new image(pictures) to the ImageList control.

flash07
10-02-2001, 06:49 PM
I think I know what you meant before, thanks.
I have to goto Toolbar properties -> General and set both ImageList & HotImageList to "none", then I should be able to add new image to ImageList control. Then after done, I have to set both the ImageList & HotImageList to ImageList again and attach all the pictures to the appropriate Toolbar menu, I found this is not handy because I had 3 Toolbars.

cheers

orufet
10-02-2001, 06:51 PM
Yeah, I can see how that isn't too easy, even for just one toolabr, much less three. There's probably an easier way and I don't know it...

"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum