RE: How to show Selected treeview node's attribute,values in listbox t
- From: Frank Uray <FrankUray@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Feb 2009 06:53:03 -0800
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.
- Follow-Ups:
- RE: How to show Selected treeview node's attribute,values in listbox t
- From: rasingh via DotNetMonster.com
- RE: How to show Selected treeview node's attribute,values in listbox t
- References:
- Prev by Date: RE: List View Context Menu
- Next by Date: Re: how to direct web.config to use sections in subfolders?
- Previous by thread: How to show Selected treeview node's attribute,values in listbox textbox respt?
- Next by thread: RE: How to show Selected treeview node's attribute,values in listbox t
- Index(es):
Relevant Pages
|