A Workaround for Bound Image List Controls

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.

See also  5 Tips for Choosing the Right Medical Software for Your Practice

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist