Outlook/Help file multipane sytle app

M

Macca

Im am writing an application that will looks similar to Outlook or a help
file, i.e tree structure on left with right hand side pane showing data. It
is split into two panes.The Left pane has a treeview. When the nodes in the
tree are selected data is shown in the right pane.

I am using a treeview in the left pane and was wondering what is the best
way to show the data being selected in the right pane.

It's been suggested i use a panel control in the right hand pane to display
the data from the treeview.

For each node in the treeview i need to show a different set of data/view.
One node will have a few controls like combo boxes,text boxes,push buttons,
which will be used to produce a report.

Another view will contain text with some link labels that if clicked on will
bring up another page of text or a dialog.

Other nodes will have different views.

I would like advice on how i could show the different views for the nodes
and how i would design them. Would i need multiple panels or is there
another way to do it?


Thanks In Advance
Macca
 
N

Nicholas Paldino [.NET/C# MVP]

Macca,

What you could do is when you construct the nodes in the treeview, you
can set the tag property to the Type representing the control that you want
to show in the right hand side. Then, you can create the control, and pass
it the node information (you will have to implement an interface on the
control to accept the node information which tells it how to configure
itself).

Then, you just add the control as a child to the right hand side, and
then show it.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top