Connecting Tech Pros Worldwide Forums | Help | Site Map

Basic help needed with panel control

Brian Gallagher
Guest
 
Posts: n/a
#1: Nov 20 '05
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



Fergus Cooney
Guest
 
Posts: n/a
#2: Nov 20 '05

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


Brian Gallagher
Guest
 
Posts: n/a
#3: Nov 20 '05

re: Basic help needed with panel control


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" <filter-1@tesco.net> wrote in message
news:udyQH4CfDHA.2152@tk2msftngp13.phx.gbl...[color=blue]
> 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,[/color]
you[color=blue]
> 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[/color]
top[color=blue]
> 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[/color]
saved[color=blue]
> 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[/color]
design[color=blue]
> 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
>
>[/color]


Fergus Cooney
Guest
 
Posts: n/a
#4: Nov 20 '05

re: Basic help needed with panel control


Hi Brian,

Lol. Much pain ahead. :-(

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

Regards,
Fergus


Cor
Guest
 
Posts: n/a
#5: Nov 20 '05

re: Basic help needed with panel control


But a lot of fun when Fergus helps you.


Kurt
Guest
 
Posts: n/a
#6: Nov 20 '05

re: Basic help needed with panel control


[color=blue]
>-----Original Message-----
>Hi Brian,
>
> Lol. Much pain ahead. :-(
>
> But when you get good - oh, is it good! :-D
>
>Regards,
>Fergus
>
>
>.
>[/color]
Painless? No... Exciting? Yes!!! There is so much
cool new stuff to work with here :-) And fergus... thx
for previous input...
Closed Thread