Results 1 to 6 of 6

Thread: Image List and Toolbar

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    High Wycombe, UK
    Posts
    142

    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!

  2. #2
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    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"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    High Wycombe, UK
    Posts
    142

    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??????

  4. #4
    Addicted Member PhilRob56's Avatar
    Join Date
    Oct 2002
    Location
    New York
    Posts
    249

    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    High Wycombe, UK
    Posts
    142

    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

  6. #6
    Addicted Member PhilRob56's Avatar
    Join Date
    Oct 2002
    Location
    New York
    Posts
    249

    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
  •  



Click Here to Expand Forum to Full Width