Click here to Skip to main content
15,922,325 members
Posted
Comments
Kenneth Haugland 1-Oct-12 4:34am    
Use a treeview?
kushmanish 1-Oct-12 4:55am    
can u explain code?

Have a look at this article and try to follow and implement what you need: Binary Tree in C#[^]
 
Share this answer
 
It depends what you're trying to do.

There are tree view controls out there already. You can even extend the behaviour of the default tree view control to use a custom renderer for the tree nodes by setting the SetRenderMethodDelegate

But if you're looking draw it all yourself then drawing is done using GDI+ and theGraphics object.

The following is an excellent place to start for drawing graphics with code:

http://msdn.microsoft.com/en-us/library/5y289054.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900