Basic help needed with panel control

  • Thread starter Thread starter Brian Gallagher
  • Start date Start date
B

Brian Gallagher

Ok a silly question but I am coming from Access to .net and need help. I
have managed ho add a tree view and a splitter and those work fine on the
left of the screen.

However when a record is selected it can be of one or two types which needs
to be displayed on the right. Someone suggested that I seed the panel
control but the problem is I need to overlay 2 but the problems are
1. I can't dock 2
2. I want to group all of the controls on each
3. I need to be able to show each panel and their controls in design view
separate without showing the others.

Thanks in advance
 
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
 
Excellent thank you very much!

To be honest everyone is saying the move from Access VBA (which I do with my
eyes shut) to .net should be painless but I am not so sure!

Thanks again!
Brian
 
Hi Brian,

Lol. Much pain ahead. :-(

But when you get good - oh, is it good! :-D

Regards,
Fergus
 
-----Original Message-----
Hi Brian,

Lol. Much pain ahead. :-(

But when you get good - oh, is it good! :-D

Regards,
Fergus


.
Painless? No... Exciting? Yes!!! There is so much
cool new stuff to work with here :-) And fergus... thx
for previous input...
 
Back
Top