Showing different forms depending on a treeview in vb.NET
-
Hi All I have a project which uses a treeview to the left of the main form. The tag of each treenode contains one of three different objects. Each object contains different fields of data. I am looking for a tidy way to display the appropriate controls on the right hand side of the form depending on what object is stored in the node. I can see that I could show a different form each time but I do not want an MDI like interface. My ideal would be that the controls to the right just change. Apoligies if this is trivial - I am new to vb.NET thanks in advance Jon
-
Hi All I have a project which uses a treeview to the left of the main form. The tag of each treenode contains one of three different objects. Each object contains different fields of data. I am looking for a tidy way to display the appropriate controls on the right hand side of the form depending on what object is stored in the node. I can see that I could show a different form each time but I do not want an MDI like interface. My ideal would be that the controls to the right just change. Apoligies if this is trivial - I am new to vb.NET thanks in advance Jon
What you could do is make a panel for each unqiue ui view. When the tree view node is clicked you remove the old panel and add the new panel via the controls collection on the form. Forever Developing
-
What you could do is make a panel for each unqiue ui view. When the tree view node is clicked you remove the old panel and add the new panel via the controls collection on the form. Forever Developing
Hi Nicholas - how would I do that please? thanks Jon