I'm not sure that I understand you but here goes.
If you have two panels, and only one is open at any one time, then something
triggers that event (one to open, one to close).
So, in that Sub (or whatever)
Sub page_load()
Protected withEvents panel1 as panel
'Your controls on your form
'populate values in controls regardless of panels
panel1.visible = true 'show panel 1 first
End Sub
Sub panel1close_click()
' I use image buttons sometimes with a '-' or '+' to open and close panels
panel1.visible = false
panel2.visible = true
'populate values in panel 2 controls in change needed
End Sub
Sub panel1open_click()
panel1.visible = true
panel2.visible = false
'populate values in panel 1 controls in change needed
End Sub
and so forth....
By default , hiding a panel hides its controls. But they are on the panel
(form), either placed there on the form or dynamically created via something
like in the page_load.
"JJ" wrote:
Hi,
How can I lay one panel over the other? I want to switch back and forth
between panels that overlap. If I do this and make one invisible can I still
load controls with data if that particular panel is invisible?
Thanks,
JJ