|
-
May 31st, 2008, 09:35 AM
#1
Thread Starter
Addicted Member
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
-
May 31st, 2008, 09:41 AM
#2
Re: Toolbar and imagelist !....
1. What type of images and what size do you try to add to your Imagelist?
2. How do you assign images to your toolbar buttons?
-
May 31st, 2008, 10:13 AM
#3
Thread Starter
Addicted Member
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>
-
May 31st, 2008, 11:42 AM
#4
Thread Starter
Addicted Member
Re: Toolbar and imagelist !....
-
May 31st, 2008, 10:18 PM
#5
Hyperactive Member
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.
-
Jun 1st, 2008, 01:16 AM
#6
Thread Starter
Addicted Member
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?
-
Jul 29th, 2008, 01:15 AM
#7
Hyperactive Member
Re: Toolbar and imagelist !....
upload your project
-
Jul 29th, 2008, 03:38 AM
#8
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|