A Workaround for Bound Image List Controls

When an image list is referenced by another object such as a toolbar, you can only add images to the imagelist. VB doesn’t allow deletes or changes to the size of the images in the image list while the reference exists.Typically, the solution is to remove the references, edit the image list, and then reset the references again.However, this can become cumbersome when you might have 10 to 15 toolbar buttons referencing theimage list. To avoid the reference problem, simply select the object referencing the image list and “cut” itfrom your form. Then you can freely edit the image list because VB doesn’t think it’s referenced by anycontrol. Once you finish editing the image list, simply “paste” the other control back on your form. Allreferences will be restored, including the reference to the changed image list.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: