Error while adding TreeNode in presenter.
-
Hi All, I am creating a windows app, with MVP architecture. In presenter, I am adding nodes to the treenode, so in doing so, I am initializing <pre>TreeNode MainNode = new TreeNode(); MainNode.Name = strProjectFolderPath; MainNode.Text = strProjectFolderPath; _view.AddTreeNodes(MainNode); </pre> I see the error, when I put a watch on MainNode, FullPath = 'MainNode.FullPath' threw an exception of type 'System.InvalidOperationException' Actually I am trying to add items to this main node, so that I get the treeview from the folder. Please help me in solving this Thanks Ramm
-
Hi All, I am creating a windows app, with MVP architecture. In presenter, I am adding nodes to the treenode, so in doing so, I am initializing <pre>TreeNode MainNode = new TreeNode(); MainNode.Name = strProjectFolderPath; MainNode.Text = strProjectFolderPath; _view.AddTreeNodes(MainNode); </pre> I see the error, when I put a watch on MainNode, FullPath = 'MainNode.FullPath' threw an exception of type 'System.InvalidOperationException' Actually I am trying to add items to this main node, so that I get the treeview from the folder. Please help me in solving this Thanks Ramm
Hi, You probably need to act according to this article[^]. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.