Yeah, it's just a matter of understanding the objects involved.
1. Your toolbar
2. Its buttons collection
3. Your imagelist
4. Its image collection
So, I'm assuming that you've been able to set up a toolbar with images on buttons. (Let me know if you haven't.) To change the image, just say
Code:
Toolbar1.Buttons(1).Image = 2
as an example, where the Image property was something other than 2 before. Keep in mind that both the buttons collection and the Image collection on the ImageList have a lower bound of 1, not 0. So, just add the different images that you want to the ImageList collection, and change the Image property of the Button appropriately.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.