|
-
Dec 27th, 2001, 10:35 PM
#1
Thread Starter
Addicted Member
TreeView Problem ....
hi,
i want to know how to add an image to treeview without using image list ?
thank you.
-
Dec 27th, 2001, 10:37 PM
#2
-
Dec 27th, 2001, 10:37 PM
#3
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
-
Dec 27th, 2001, 11:26 PM
#4
Thread Starter
Addicted Member
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 ?
-
Dec 27th, 2001, 11:31 PM
#5
You can add the images to the ImageList during run-time.
VB Code:
ImageList1.ListImages.Add , "UniqueKeyValue", LoadPicture(App.Path & "\ThePic.bmp")
Best regards
-
Dec 27th, 2001, 11:34 PM
#6
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
-
Dec 27th, 2001, 11:37 PM
#7
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
-
Dec 27th, 2001, 11:39 PM
#8
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
-
Dec 27th, 2001, 11:42 PM
#9
It would be a good route to take if you have more then one application that uses the same images.
-
Dec 28th, 2001, 12:43 AM
#10
Thread Starter
Addicted Member
yeah i use the same images.
and another question :
is compiled project with the size 3,5 MB clasified to big exe file ?
-
Dec 28th, 2001, 12:59 AM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|