How do I change a display using TreeView?
<p>I'm trying to change a panel to a specific form (as this is the only way I can fathom it) based on the selected TreeView node. For example, in Visual Studio, if you right-click on "Solution 'solutionname' (1 Project)", click 'Properties', it comes up with a tree list on the left side. When you click on a selection, the right pane changes.</p>

<p>I've searched continuously for hours the previous few days and only found a tutorial showing how it can affect a webBrowser control.</p>

<p>This is a farfetched example that I can understand:</p>

<p><code>private void tree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)<br>
{<br>
treeNode nName      = e.Node;<br>
            //For testing:<br>
            string pg           = "";<br>
            pg = nName.Tag;<br>
            if (pg == "Form2") display = Form2;<br>
    }
</code></p>

<p>Display is a panel. I know this is absolutely wrong, but I couldn't find any proper method using my search terms.</p>
