0

Hello! I'm creating a application that involves the tree view, i have this method being called:

public void openproject()
        {
            XmlDocument reader = new XmlDocument();
            reader.Load("EWProjects/" + projectName + "/" + projectName + ".ebw");
            projectName = reader.SelectSingleNode("Project/ProjectName").InnerText;
            addNode();
        }

It reads the title of a 'project' from an XML file (with my own extension) then calls the method addNode. And yes I'm positive that the information is being fetched I have debugged with MessageBox.
So here is the addNode method.

public void addNode()
        {
            TreeNode node = new TreeNode("Example");
            treeView1.Nodes.Add(node);
        }

Nothing is working at all, iv'e tried it in the openproject method as well, nothing is working! I can't get it to work in any method. Someone please help?

2
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by Momerath
0

Yes my friend told me to do that after I posted this thread, I called it right here:

public void addNode()
        {
            TreeNode node = new TreeNode("Example");
            treeView1.Nodes.Add(node);
            treeView1.Refresh();
        }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.