ShellTreeViewCustomImages Property |
Namespace: Jam.Shell
private void ShellTreeView1_AddTreeNodeCustomIcons(object sender, AddTreeNodeEventArgs e) { if (e.Node.AbsoluteItemIdList.SpecialFolder == ShellFolder.MyMusic) e.Node.ImageIndex = e.Node.SelectedImageIndex = shellTreeView1.ImageList.Images.IndexOfKey("folder_music.png"); //the following code clears the image of all root nodes in the ShellTree if (e.ParentNode == null) { e.Node.ImageIndex = shellTreeView1.EmptyIconIndex; } }