Autor Beitrag
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Mi 03.08.05 19:45 
Hallo,

wie füge ich dem .NET-Treeview zur Laufzeit ein Node hinzu, dass einem anderen untergeodrnet ist? Ich hab schon in der OH geguckt, aber nix gefunden. :-(

Schonmal Danke im vorraus,
JayK


Moderiert von user profile iconChristian S.: Topic aus .NET verschoben am Sa 17.09.2005 um 22:12
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Do 04.08.05 08:52 
Jedes Node besitzt wieder eine TreeNodeCollection namens Nodes, mit dessen Methode Add sich ein Node hinzufügen lässt:

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
  TreeNode newNode = new TreeNode("node 1");
  treeView1.Nodes.Add(newNode);

  TreeNode newSubNode = new TreeNode("node 1.2");
  newNode.Nodes.Add(newSubNode);


Moderiert von user profile iconChristian S.: Code- durch C#-Tags ersetzt

_________________
JSXGraph


Zuletzt bearbeitet von raziel am Sa 17.09.05 22:13, insgesamt 1-mal bearbeitet
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Do 04.08.05 14:19 
Danke ;-) :-D