VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Load an Image List from Resource

james kahl  (8 Submissions)   Coding Standards   VB Script   Beginner   Wed 3rd February 2021

I hate maintaining ImageList controls, especially for larger projects where there might be several forms that can contain two or more of them on each form and have them same images. I prefer instead to use a Resource file for all resources and extract the items as needed. This provides faster load times for forms, creates smaller executables (since you only need one copy of each image), and becomes easier to maintain since all items are located in one place. (Notice there is no .frx file for this project) I loaded all images from the resource file and into the same ImageList control. I also added the capability in this sample to change the size of the toolbar buttons to show another advantage of doing it this way.

Rate Load an Image List from Resource (9(9 Vote))

Download Load an Image List from Resource

Load an Image List from Resource Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters