Results 1 to 8 of 8

Thread: Toolbar and imagelist !....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    136

    Toolbar and imagelist !....

    hi,
    i wonder why my toolbar cannot work with imagelist....

    i do what exactly this tutorial (http://www.vb6.us/tutorials/using-to...basic-tutorial) taught.

    i can't inside image into the toolbar..
    is mine computer problem or what?

    any comments will be appreciate

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    136

    Re: Toolbar and imagelist !....

    (imagelist)
    i tryed Jpeg,bitmat,gif with 16 x 16, 32 x 32, 48 x 48
    and i set the Key = New

    (toolbar)
    property pages -> General -> imagelist = imagelist1
    property pages -> Buttons -> Insert button -> Key = New

    there is a problem, after i pressed "Apply" button.... property pages -> General -> imagelist = <none>

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    136

    Re: Toolbar and imagelist !....

    any solution for me pls?

  5. #5
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Indiana
    Posts
    295

    Re: Toolbar and imagelist !....

    You are aware aren't you that in the tutorial, the key = new refers to an image which is named new?

    Try it without using the key at all. Leave it blank in both the imagelist and the button. Just use the index numbers.

    For example, suppose you load three images into your imagelist control, and give them index numbers of 1, 2 and 3.

    When you assign the buttons, just tell each button which index number to use, 1, 2, or 3.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    136

    Re: Toolbar and imagelist !....

    i tryed edi...
    i think is my common control problem..

    i'm using Microsoft Windows Common Control 6.0 (SP6)

    every time i try to link imagelist to toolbar but i wonder why toolbar doesn't accept the imagelist.






    any idea?

  7. #7
    Hyperactive Member
    Join Date
    Feb 2008
    Posts
    327

    Re: Toolbar and imagelist !....

    upload your project

  8. #8
    Lively Member
    Join Date
    Nov 2007
    Location
    Rochester, NY
    Posts
    111

    Re: Toolbar and imagelist !....

    When you add a new image, you only Insert it into the ImageList, and click OK. then you add a new Button into the ToolBar, you set the new Button with a key (this is used for when it's clicked). The rest of the variables can be set on form load.

    Example: http://www.vbforums.com/showthread.php?t=498875
    Please use the search function prior to posting a question and see if someone's already answered it.
    -If I helped you, please rate me, as I'd do the same for you =)
    -Remember to select the Resolved option for your post when you've gotten the answers you need.

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