devxlogo

Toolbar image list

Toolbar image list

Question:
I am trying to setup a toolbar using the MS windows common controls. How do you initialize the image list? The toolbar works but I cant get a image on the button.

Answer:
If you go to the In Depth section on Ask the VB Pro, there is an articleabout how to use the Toolbar and ImageList controls. That should provideall the answers you need. Basically, you have to load the images into theImageList control at design time (or at runtime, using the LoadPicturestatement) and then reference the ImageList control from the Toolbarcontrol.

See also  Is Machine Learning Automating Creativity in Graphic Design?
devxblackblue

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