kourosh saleh

kourosh saleh

  • NA
  • 20
  • 50.9k

TreeView Problem

Apr 23 2006 8:23 AM
Hi, I have a UserControl that contains a TreeView(with nodes) , a TextBox and a Button, I want when you click on the button you add new node under the selected node that it's name is the text of the TextBox. it can be solved by following code: treeView1.SelectedNode.Nodes.Add(new TreeNode(textBox1.Text)); but my problem is the applicatin runs on a server and it can be restarted and the nodes must be left there, I have tryed a lot but no success, I need som code, thanks