Results 1 to 3 of 3

Thread: Change image on toolbar's button

  1. #1
    jdn
    Guest

    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

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    VB Code:
    1. 'assuming the key of the button is "Approve" and
    2.     'the key of the image is "Forward"
    3.     Toolbar1.Buttons("Approve").Image = "Forward"

  3. #3
    jdn
    Guest

    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
  •  



Click Here to Expand Forum to Full Width