Pages

Total Pageviews

Add This

Thursday, July 21, 2011

Display images in a tree view

 You have to set the TreeView control's ImageList property to the existing ImageList control.
These properties can be set in the designer with the Properties window, or in code.


TreeView1.ImageList = ImageList1
 
TreeView1.SelectedNode.ImageIndex = 0
TreeView1.SelectedNode.SelectedImageIndex = 1 

No comments:

Post a Comment