Is it possible to create a C# Winform that display a treeview on the
left hand side and a different UI form/page with textboxes and labels
for each node on the right hand side? For example, if a user click
node1, it will show a UI on the right, node2 will show another UI
design on the right.
How should I go about doing this?
Many thanks and Happy New Year.
Ben
Divide your form into two separate portions using a SplitContainer.
Use container controls such as Layout panels on the right side and
load panels according to the selected node in the TreeView.
Happy coding!
Benj
Yes you can create a treeview that will display different UI.Create Treeview tvListSomething like thisstring xmlName="HeadLine.xml";private void CreateTree(String xmlName){XmlDocument XmlDoc = new XmlDocument();XmlDoc.Load(Server.MapPath("TreeXml\\" + xmlName));tvList.Nodes.Clear();foreach (XmlNode node in XmlDoc.ChildNodes[0].ChildNodes){TreeNode tNode = new TreeNode();tNode.Text = node.Attributes["title"].Value;tNode.Value = node.Attributes["url"].Value;tvList.Nodes.Add(tNode);}}Eg of HeadLine.xml<xml><siteMapNode title="Phono" url="Phono.aspx" description="Phono"/><siteMapNode title="Coming Up Next" url="ComingUpNext.aspx" description="ComingUpNext"/></xml>Easy ....Pratiksha
On Jan 7, 1:08 pm, Processor Devil <processor.de...@gmail.com> wrote:
> Benj, why did you answer? Are you trying to get credit for the posting? :P
>
> 2010/1/7 Benj Nunez <benjnu...@gmail.com>
Benj
On Jan 7, 4:08 pm, Processor Devil <processor.de...@gmail.com> wrote:
> Benj, why did you answer? Are you trying to get credit for the posting? :P
>
> 2010/1/7 Benj Nunez <benjnu...@gmail.com>