groupbox

  • Thread starter Thread starter jim
  • Start date Start date
J

jim

I have two panels of identical sie. I would like to postion them on
the same part of the form and have one become visible and the other
invisible depending on other actions that occur on the form. The
problem is that when I position one over the other one becomes
"contained" with in the other. s there a way to prvent this from
occuring?
 
Yes...

Instead of dragging the one panel above the other...
go to the properties of the first panel...look at the "Location" property,

and then click on the second tab, and click on the properties and change the
Location thru the properties.

Then to access any of the two panels, right click on the panel and just
click on "Send to back"...

Miro
 
I had tried that. However, just to torture myself (and whoever helps)
the first group panel sit in an tabcontrol..If I do what you say the
second control sit "in the air" so to speack so when I change tabpages
it is always visible. The only way around it was to right additional
code to make it disappear when I change tab pages. It is nt elegant
and make it difficult to work on the UI. on group panel block
everything
 
I dont fully understand.

If you have a Tab Page...
and have 2 tabs... Tab A and Tab B

and on Tab A you have two panels, and have made the "Location" property the
same. They are both a Child of Tab A, so will disapear automatically when
you switch to Tab B.

I think your issue is that you have 1 Panel created within Tab A and one
Outside of it?
If this is the case, you have to create both Panels inside and then do the
Location Thing.

Can you do a quick screenshot / jpg of the tab page and panel in question ?

M.
 
I dont fully understand.
Yes
If you have a Tab Page...
and have 2 tabs... Tab A and Tab B

Yes

and on Tab A you have two panels, and have made the "Location" property the
same.
No
They are both a Child of Tab A, so will disapear automatically when
you switch to Tab B.

One ends up being a child of TabA the other ends up being a child of
the main form. If I try to put in on tab A it becomes a child of the
panel which is a child of tab A
I think your issue is that you have 1 Panel created within Tab A and one
Outside of it?
If this is the case, you have to create both Panels inside and then do the
Location Thing.

Correct but I cnnot seem to control how to creat bot within Tab A it
keeps getting "sucked in"
 
Back
Top