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.

devx-admin

Share the Post: