VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Load an Image List from Resource

by james kahl (8 Submissions)
Category: Coding Standards
Compatability: VB Script
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

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

Download Load an Image List from Resource

Download Load an Image List from Resource (98 KB)

Load an Image List from Resource Comments

No comments have been posted about Load an Image List from Resource. Why not be the first to post a comment about Load an Image List from Resource.

Post your comment

Subject:
Message:
0/1000 characters