Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
QuestionRight-To-Left Printing Pin
User 209307327-Sep-05 2:03
User 209307327-Sep-05 2:03 
QuestionTreeNodes Pin
PHDENG8127-Sep-05 1:24
PHDENG8127-Sep-05 1:24 
AnswerRe: TreeNodes Pin
deep727-Sep-05 1:40
deep727-Sep-05 1:40 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 1:45
g00fyman27-Sep-05 1:45 
GeneralRe: TreeNodes Pin
PHDENG8127-Sep-05 1:53
PHDENG8127-Sep-05 1:53 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 2:05
g00fyman27-Sep-05 2:05 
GeneralRe: TreeNodes Pin
PHDENG8127-Sep-05 2:10
PHDENG8127-Sep-05 2:10 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 2:26
g00fyman27-Sep-05 2:26 
get subtree is your recursive call that is building the subtree/s then you add that to the node collection of the rootnode

just a quick eg of top of head
<br />
private TreeNode root;<br />
<br />
		public void Test()<br />
		{<br />
<br />
      root = new TreeNode("root");<br />
<br />
      root.Nodes.Add(GetSubTree());<br />
      this.treeView1.Nodes.Add(root);<br />
		}<br />
<br />
    int i = 0;<br />
    private TreeNode GetSubTree()<br />
    {      <br />
      TreeNode subtree = new TreeNode("x: " + i);<br />
<br />
      while(i++ < 10)<br />
      {<br />
        root.Nodes.Add(new TreeNode("node: " + i));<br />
        return GetSubTree();  <br />
      }<br />
<br />
      return subtree;<br />
    }<br />


hth
g00fy
GeneralRe: TreeNodes Pin
PHDENG8127-Sep-05 2:42
PHDENG8127-Sep-05 2:42 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 2:45
g00fyman27-Sep-05 2:45 
Questionhorizontal scrolling Pin
g00fyman27-Sep-05 1:22
g00fyman27-Sep-05 1:22 
AnswerRe: horizontal scrolling Pin
Christian Graus27-Sep-05 1:42
protectorChristian Graus27-Sep-05 1:42 
GeneralRe: horizontal scrolling Pin
g00fyman27-Sep-05 1:50
g00fyman27-Sep-05 1:50 
GeneralRe: horizontal scrolling Pin
Christian Graus27-Sep-05 2:11
protectorChristian Graus27-Sep-05 2:11 
GeneralRe: horizontal scrolling Pin
g00fyman27-Sep-05 2:29
g00fyman27-Sep-05 2:29 
QuestionXtending Stylesheets Pin
Member 194743127-Sep-05 0:56
Member 194743127-Sep-05 0:56 
QuestionSystem.Data.SqlClient.SqlException Pin
signbit27-Sep-05 0:36
signbit27-Sep-05 0:36 
Questioncustom button component Pin
ppp00127-Sep-05 0:17
ppp00127-Sep-05 0:17 
AnswerRe: custom button component Pin
seee sharp27-Sep-05 0:25
seee sharp27-Sep-05 0:25 
QuestionDatabase Error Pin
AshishBasran27-Sep-05 0:00
sussAshishBasran27-Sep-05 0:00 
Questionrunning a javascript every time a button with autopostback is clicked Pin
livez26-Sep-05 23:58
livez26-Sep-05 23:58 
AnswerRe: running a javascript every time a button with autopostback is clicked Pin
Christian Graus27-Sep-05 0:30
protectorChristian Graus27-Sep-05 0:30 
GeneralRe: running a javascript every time a button with autopostback is clicked Pin
livez27-Sep-05 1:24
livez27-Sep-05 1:24 
QuestionKeyboard control Pin
J Liang26-Sep-05 23:33
J Liang26-Sep-05 23:33 
AnswerRe: Keyboard control Pin
Lapje28-Sep-05 4:09
Lapje28-Sep-05 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.