Results 1 to 11 of 11

Thread: TreeView Problem ....

  1. #1

    Thread Starter
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242

    TreeView Problem ....

    hi,

    i want to know how to add an image to treeview without using image list ?

    thank you.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    I don't think you can!

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Just out of curiousity...

    Why don't you want to use an ImageList?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4

    Thread Starter
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242

    Re: Just out of curiousity...

    Originally posted by crptcblade
    Why don't you want to use an ImageList?
    coz , in my project i use a lot of treeview, and if i use image list , the icon will embeded to image list , so if i compile my project it will produse a large executable file.
    any suggestion ?

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You can add the images to the ImageList during run-time.
    VB Code:
    1. ImageList1.ListImages.Add , "UniqueKeyValue", LoadPicture(App.Path & "\ThePic.bmp")
    Best regards

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Thats true Joacim, but wouldn't the exe with the images compiled into it still be smaller than shipping the pictures along?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Originally posted by crptcblade
    Thats true Joacim, but wouldn't the exe with the images compiled into it still be smaller than shipping the pictures along?
    Maybe but the Exe wouldn't take up the same amount of memory when it runs, unless if you'll need to load all images.
    Besides this is what he asked for

  8. #8
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Its what he asked for, but I was just thinking it might not be the best route. But, oh well, the question got its answer.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    It would be a good route to take if you have more then one application that uses the same images.

  10. #10

    Thread Starter
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    yeah i use the same images.
    and another question :
    is compiled project with the size 3,5 MB clasified to big exe file ?

  11. #11
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    I would say that that's a very big exe file.

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