loading different forms in place of panel

S

Steve

I am looking for a way to switch between different forms in my main form.
In other words, I want a behavior where I can show different controls based
on the selected context of the treeview. I thought I could do this with the
tab control, but quickly realized that I can't hide the tabs. CodeProject
showed some hacks, but I don't like hacks.

Then I thought that I could create a form for each context I want to show
and add the controls. Then just show and place the relative form in the
position of a panel that I have docked to the side of my main form.

Does that make sense? If so, anyone know how I can achieve this? I have
not really done any work with .NET winforms.

Thanks for any help,
Steve
 

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