RE: How to show Selected treeview node's attribute,values in listbox t

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi

For example you can:
System.Windows.Forms.MessageBox.Show(((System.Windows.Forms.TreeView)sender).SelectedNode.Text);

In AfterSelect and with SelectedNode you can decide
what you like to do ... display something in another control and so on ...


Regards
Frank Uray


"rasingh" wrote:

Hi,
I have to create a project in C# in which i have to create a XML Tree View,
select a xml file from hard drive(System) it is displayed as Tree View on
winform.

When a user selects a particular node/element in the tree view,its attributes
and values have to be displayed in list box and text box respectively.

Till now i have done a part of it like selecting it from Openfiledialog
(Browse) showing it in tree View and all the attributes related to the XML
file in list box.
But i don't know how to put a code in
private void treeViewObj_AfterSelect(object sender, TreeViewEventArgs e)
{
//what to write here.
}

Please help me out as early as possible..
Thanks in advance.


.



Relevant Pages

  • Re: TreeView Dynamic XML Binding
    ... Subject: TreeView Dynamic XML Binding ... Expand the ReturnHeader node. ... When I click on the tree node for the select ... I'm simply trying to display the xml element tree ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • wxPython: wxGrid vs. wxListCtrl
    ... I am working on an XML editor that will not display the xml file as ... Building the tree view was not a problem, but I havenīt found a good ... because when the cell content changes I would like ...
    (comp.lang.python)
  • Re: TreeView Dynamic XML Binding
    ... Subject: TreeView Dynamic XML Binding ... Expand the ReturnHeader node. ... When I click on the tree node for the select ... I'm simply trying to display the xml element tree ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: TreeCellRenderer.setIcon(null) -> performance loss
    ... don't let the model give it to the tree. ... > don't want to display them? ... Xml DOM commands that would return the information required by the ... displayed in the JTree. ...
    (comp.lang.java.gui)
  • Re: How to make printer print faster?
    ... > look at the bar graph from the lhs to the center of the display. ... A ball hitting a tree shall be deemed not to have hit the tree. ...
    (freebsd-questions)