chazter
asked on
Adding pictures to a tool bar!
Hi i'm trying to add pictures to my toolbar control that i have placed on my form, i have also placed an imagelist control on the form. I have linked the toolbar control to the image list control. I have also added my pictures to the imagelist and given the pictures a key, when i add a button on the toolbar control and select an picture by giving it the key of the picture nothing appears on the button.
What am i doing wrong?
Chazter
What am i doing wrong?
Chazter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you keep saying key...if you are using key use index instead
That should be a simple problem. BY now u should have solved it urself. But any way try using index property which is easy to assign.
It doesn't sound like you are doing anything wrong... You don't have to use the index of the picture, the keys should work fine. I use them all the time.
Toolbar1.ImageList = ImageList1
'Create buttons using ImageList picture index
Toolbar1.Buttons.Add 1, , "Button 1", tbrDefault, 1
Toolbar1.Buttons.Add 2, , "Button 2", tbrDefault, 2
End Sub