Tree View Image  
Author Message
dnzone





PostPosted: Visual C# Language, Tree View Image Top

Can anybody teach me how to change the image of the Plus Sign and the minus Sign for the Tree View to other image of my choosing. Thanks

Visual C#15  
 
 
Peter Ritchie





PostPosted: Visual C# Language, Tree View Image Top

You can't "change" those images; but you can disable them and use images that depend on whether a branch is opened or closed. You could start by loading the images you want into an ImageList object (either through the Designer or manually, in code). Then, process the AfterCollapse and AfterExpand events to set the Node's ImageIndex and SelectedImageIndex, appropriately.