|
-
Oct 18th, 2002, 09:40 AM
#1
Thread Starter
Addicted Member
Image List and Toolbar
Experiencing a very weird problem.
Have got a Toolbar on a Form with an Image List as a source for the icons. Using the Properties Form of the Toolbar I set the associated ImageList and then assign an Icon to a button. Click OK to save, save the project.
Then when I run after full compile the correct Icons are displayed.
However, when I exit VB, restart, open the Project, an Icon from one of my other Image Lists on the Form is being displayed? The Properties of the Toolbar remain the same????
Whats going on? Anyone got any ideas?
There is no code in the Form asigning Icons to the control so nothig is running accidently.
Heeeeelp!
-
Oct 18th, 2002, 09:46 AM
#2
Frenzied Member
Make sure under the proprties of the toolbar, you are referring to the correct imagelist in the first tab and also make sure that you do not have a different entry in the Disabledimagelist property.
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Oct 18th, 2002, 09:57 AM
#3
Thread Starter
Addicted Member
Imagelist and Toolbar
All three ImageLists for the Toolbar are the same.
The weirdest thing happening is that when I restart VB several of my Icons in the Imagelist have swapped to others in the directory???????? Even though I have saved the code, run it and its fine??????
-
Oct 18th, 2002, 10:05 AM
#4
Addicted Member
Re: Imagelist and Toolbar
Originally posted by nezster
All three ImageLists for the Toolbar are the same.
The weirdest thing happening is that when I restart VB several of my Icons in the Imagelist have swapped to others in the directory???????? Even though I have saved the code, run it and its fine??????
Don't worry about it. I have a similar problem (VB6, SP5), where NONE of the images from my imagelist display on the Toolbar when I am editting the project. However, when the application runs everything is fine. The app, is commercially distributed and I have no problems in the field, so I've just left it alone and not tried to find the problem.
So if it's not causing a problem on execution, just accept it as another little gift from Mr. Gates, Bless his Heart.
Some days you're the dog,
and some days you're the hydrant.
VB6 Enterprise
-
Oct 18th, 2002, 10:33 AM
#5
Thread Starter
Addicted Member
Imagelist and Toolbar
All sorted.
Been using an Icon Editor application. When I open the Icon there are two types stored in the .ico file, a 32 x 32 and 16 x 16 image. Just deleted the 32 x 32 image and everything is fine???????
Strange but true
-
Oct 18th, 2002, 10:44 AM
#6
Addicted Member
Re: Imagelist and Toolbar
Originally posted by nezster
All sorted.
Been using an Icon Editor application. When I open the Icon there are two types stored in the .ico file, a 32 x 32 and 16 x 16 image. Just deleted the 32 x 32 image and everything is fine???????
Strange but true
Ahhh...now there is some commonality. I run 4 imagelists with 32 and 16x16 icons so the user can toggle between big piccies and little piccies...so now we know!
Hmmm....food for thought....
Some days you're the dog,
and some days you're the hydrant.
VB6 Enterprise
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
|