How to: Override TreeView Control's "SelectImageIndex" property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using the .Net Compact Framework, how is it possible to override the
SelectImageIndex property? I am trying to achieve the following: That when a
user selects a node, or child-node, that the image does not change.

By default, the TreeView control selects the image in the ImageList at
position 0.

Thanks,
 
charliewest,
You don't need to "override" the property per se.

You simply need to set the SelectImageIndex property to the same value as
the ImageIndex property when you create the node.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top