Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If i select the treeview item in the treeview control the form will displayed and changed in each selected item contains a form
Posted
Comments
Amir Mahfoozi 25-Jan-12 7:21am    
Not a question.
E.F. Nijboer 25-Jan-12 7:22am    
Try to be more specific because your question is not clear.

You simply need to handle the onclick event for the TreeView nodes and then in the code-behind either change the existing form contents appropriately, or open a new form/dialog from there.
 
Share this answer
 
You mean you want to show certain information for any selected item(s) in the TTreeView control inside a TForm?

You can do this by handling TTreeView.OnClick event.

If you set TTreeView.MultiSelect False, property TTreeView.Selected stores the one user selects.

If you set TTreeView.MultiSelect True, use property TTreeView.Selections.

Then you can take information out of Selected or Selections to update your form.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900