|
-
Sep 27th, 2001, 10:51 AM
#1
Change image on toolbar's button
Hi all, this is my problem:
I have a Toolbar named Toolbar1. This Toolbar is bound to an image list named ImageList1. ImageList1 has 2 images, one is name "Forward" and the other one named "Approve".
On Toolbar1 I have a button named "Approve". This button's image is bound to ImageList1's "Approve" image. How do I change the button's image to ImageList1's "Forward" image during run time.
Thanks in advance,
JDN
-
Sep 27th, 2001, 11:14 AM
#2
VB Code:
'assuming the key of the button is "Approve" and
'the key of the image is "Forward"
Toolbar1.Buttons("Approve").Image = "Forward"
-
Sep 27th, 2001, 12:10 PM
#3
Thanks
Thanks Serge, it works perfectly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|