By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,370 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,370 IT Pros & Developers. It's quick & easy.

Basic help needed with panel control

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
Nov 20 '05 #2

P: n/a
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

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #3

P: n/a
Hi Brian,

Lol. Much pain ahead. :-(

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

Regards,
Fergus
Nov 20 '05 #4

P: n/a
Cor
But a lot of fun when Fergus helps you.
Nov 20 '05 #5

P: n/a
-----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...
Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.