G
Grant Schenck
Hello,
I'm going round and round on how to best handle images for a treeview
control. These are all known at design time so there is no dynamic aspect.
That said, I want to associate the image with my project so I can easily
edit them.
It seems like I need to do this:
- Create one bitmap per image.
- Create an imagelist containing each bitmap file.
- Associate the imagelist with my treeview.
Is that the best way? I have a lot of images and I'll end up with a lot of
BMP files.
In MSVC 6.0, I could put all of the images into a single bitmap and
associate that with the tree control. Is there a similar notion in C#?
Thanks!
Grant Schenck
I'm going round and round on how to best handle images for a treeview
control. These are all known at design time so there is no dynamic aspect.
That said, I want to associate the image with my project so I can easily
edit them.
It seems like I need to do this:
- Create one bitmap per image.
- Create an imagelist containing each bitmap file.
- Associate the imagelist with my treeview.
Is that the best way? I have a lot of images and I'll end up with a lot of
BMP files.
In MSVC 6.0, I could put all of the images into a single bitmap and
associate that with the tree control. Is there a similar notion in C#?
Thanks!
Grant Schenck