| | |
TreeView in windows Application
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 8
Reputation:
Solved Threads: 0
Hello
I hope it can help you a bit
I hope it can help you a bit

C# Syntax (Toggle Plain Text)
TreeNode treeNode = new TreeNode(); treeNode = treeView.Nodes.Add("Parent"); //Child for (int i = 0 ; i<10; i++) { TreeNode childNode = New TreeNode(); childNode.Text = "Chile" + i.ToString; //picture //childNode.ImageKey = i; //Picture when selected //childNode.SelectedImageKey = "C" & i; treeNode.Nodes.Add(childNode); //Child's Child Node for (int j = 1; j <5; j++) { TreeNode childChildNode = New TreeNode(); childChildNode.Text = "childChildNode" + j.ToSrting(); childNode.Nodes.Add(childChildNode); } }
Last edited by Tekmaven; Jul 19th, 2008 at 3:41 am. Reason: Code tags
How to stop worring and start living
![]() |
Similar Threads
- Outlook profile Switching (C#)
- Tree View and thumbnail (VB.NET)
- Tree view Problem...Plz help (VB.NET)
- Windows 2000 Control Panel Failure (Windows Software)
- Problems in serializing listView&treeView items in Visual C++ 2005 Express Edition (C++)
- treeView, listView, printing Handling (C++)
- Weakness In Messenger Security (Windows NT / 2000 / XP)
Other Threads in the C# Forum
- Previous Thread: Ultra rookie question???
- Next Thread: C# for Game Development
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combo combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees developer development draganddrop drawing encryption enum equation event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mathematics mouseclick mysql nargalax operator path photoshop picturebox pixelinversion post programming radians regex remote remoting restore richtextbox save saving serialization server sleep socket sql stack statistics stream string table tcp text textbox thread time timer update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





