HighTechTalks DotNet Forums  

Adding a Child node to a Child node in a TreeView control

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Adding a Child node to a Child node in a TreeView control in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Anil
 
Posts: n/a

Default Adding a Child node to a Child node in a TreeView control - 10-12-2007 , 04:12 PM






Hello,

I am kinda new to the .net environment and trying to get familiar with some
of the tools, etc. I am trying to work on the TreeView Control. I have added
a parent tree and a child to it. But I would like to add a child to that
child, so on and so forth if need be. Can anyone help me?

Posting my code here from that I have do far for reference.


Dim root As TreeNode = New TreeNode

root.Text = "test"

root.ChildNodes.Add(New TreeNode("Topic 1"))

TreeView1.Nodes.Add(root)

Thanks.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.