Hello,

Quite a simple one, however I don't know where to start.
In my form I have a treeview, splitter and some free space on the right of
my windows form.

Depending on which node in the tree is clicked I need to show different
things. i.e. either a list view, another form, text boxes etc...

Can anyone suggest the best way of achieving this?

Thanks in advance

Re: Swapping controls in windows forms by Justin

Justin
Thu Nov 04 19:53:37 CST 2004

The best option is to have a static Panel on the right that keeps your ordering
with respect to the splitter. Then you can add/remove docked items into the
Panel and they'll fill your right space.

These controls can be embedded in a UserControl (the best way so that they
are easily design). As for Forms, you really can't show those in the right side
region.


--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Lloyd Taylor" <lltaylor2000@yahoo.com> wrote in message
news:u1lc7ErwEHA.824@TK2MSFTNGP11.phx.gbl...
> Hello,
>
> Quite a simple one, however I don't know where to start.
> In my form I have a treeview, splitter and some free space on the right of my
> windows form.
>
> Depending on which node in the tree is clicked I need to show different
> things. i.e. either a list view, another form, text boxes etc...
>
> Can anyone suggest the best way of achieving this?
>
> Thanks in advance
>