Responding to your PM, I copied all of the views (Ctrl-A, Ctrl-C then Ctrl-V) to a new layout as Erel suggested and copied the designer script across and it works as expected, types are copied too.
Although again as Erel suggested there are better ways to set up the layout. Using Anchors will be far easier.
The views don't move to the correct positions over pnlAction because they are children of Main and not pnlAction. if the views positions are to be constrained within a pane then it is better to make them children of the pane.