By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,107 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,107 IT Pros & Developers. It's quick & easy.

TreeView, ImageLIst, and icons

P: n/a
Hello all!
I'm trying to create a control which will show list of drives,
subdirectories, and files - something like Windows Explorer. OK, all
this stuff is working, except for one thing - all drives and dirs (which
are nodes in TreeView) have appropriate images assigned to them.
Wherever I click on the node - the icon is changes to the first one in
ImageList. If another node is selected - the icon is restored.

Any advice ?
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
See 'SelectedImageIndex'

Alex
"Jenya" <jenya@__tour_club.ca> wrote in message
news:1h***************@news04.bloor.is.net.cable.r ogers.com...
Hello all!
I'm trying to create a control which will show list of drives,
subdirectories, and files - something like Windows Explorer. OK, all
this stuff is working, except for one thing - all drives and dirs (which
are nodes in TreeView) have appropriate images assigned to them.
Wherever I click on the node - the icon is changes to the first one in
ImageList. If another node is selected - the icon is restored.

Any advice ?


Nov 16 '05 #2

P: n/a
Thank you ! :)

Should be more careful when reading manual :)

Trebek wrote:
See 'SelectedImageIndex'

Alex
"Jenya" <jenya@__tour_club.ca> wrote in message
news:1h***************@news04.bloor.is.net.cable.r ogers.com...
Hello all!
I'm trying to create a control which will show list of drives,
subdirectories, and files - something like Windows Explorer. OK, all
this stuff is working, except for one thing - all drives and dirs (which
are nodes in TreeView) have appropriate images assigned to them.
Wherever I click on the node - the icon is changes to the first one in
ImageList. If another node is selected - the icon is restored.

Any advice ?


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.