Computer Hope

Software => Computer programming => Topic started by: zaryk on April 02, 2008, 09:20:51 AM

Title: c# treeview
Post by: zaryk on April 02, 2008, 09:20:51 AM
I have created a tree view, I wont get into details about it, but I would like, when the program is opened, to have the tree view minus/plus to start out as showing minus.  In other words, the tree view expanded at startup.  Can anyone help me with this?
Title: Re: c# treeview
Post by: Sidewinder on April 02, 2008, 06:25:51 PM
I guess you will put your code in the form load event. I did find two treeview methods which may be helpful: ExpandAll and CollapseAll.

For more information see Treeview (http://msdn2.microsoft.com/en-us/library/system.windows.forms.treeview.treeview(VS.71).aspx)

Good luck. 8)
Title: Re: c# treeview
Post by: zaryk on April 02, 2008, 09:56:26 PM
cool thanks.