Reassigning Parent and BringToFront Problem

I have a Form with a ScrollBox component on it and on the ScrollBox I
have dropped 2 Panel components (Panel1 and Panel2).  At design time,
the Parent for both of these Panels is the ScrollBox.  At runtime, I
reassign the Parent of Panel1 from the ScrollBox to Panel2.  When I do
this, Panel1 disappears and when I issue a BringToFront command nothing
happens.  How do I get Panel1 to appear on Panel2 as its Child?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.