| re: Basic help needed with panel control
Hi Brian,
I think I understand but I'm not sure. I believe you are talking about
having two panels on the RHS with a bunch of controls each. The panels are
mutually exclusive and need to fill the entire RHS when in use. However, you
want to be able to see both panels when designing.
|| 1. I can't dock 2
Don't have them docked in design view but have them side by side or top
and bottom. Have the form as big as necessary for you to see all the panel
controls. When you run the program, size it down to what the user last saved
it as (if you want to be nice to your user) or to some reasonable starting
size..
|| 2. I want to group all of the controls on each
Go for it.
|| 3. I need to be able to show each panel and their controls in design
view
|| separate without showing the others.
Don't worry about seeing them both.
Then, what you need do is Dock and Undock programatically as required.
If <TreeView item is a Foo>
pnlBar.Visible = False
pnlBar.Dock = DockStyle.None
pnlFoo.Dock = DockStyle.Fill
pnlBar.Visible = True
Else
<vice versa>
Regards,
Fergus |