Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 23rd, 2006, 07:20 AM
Authorized User
Join Date: Apr 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default TreeView Problem

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
treeview problem while migrate from 1.1 to 2.0 in nittin14 ASP.NET 2.0 Basics 2 September 8th, 2008 09:23 AM
Treeview collapse problem 2 syedwaqarali ASP.NET 2.0 Professional 0 July 13th, 2007 04:26 AM
Problem with Treeview amor1980 ADO.NET 1 May 17th, 2006 06:26 AM
TreeView Problem Aaron Edwards ASP.NET 1.0 and 1.1 Basics 0 December 20th, 2005 04:19 AM
Treeview Webcontrol problem Victor ADO.NET 2 September 9th, 2004 10:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.