PagePanel.AddPanel
From Xojo Documentation
Method
Adds a new panel after the last panel.
Example
This example adds a new panel. For example, you can create new panels in the Open event of the window, but you will want to add controls to the new panel in the Window Editor.
PagePanel1.AddPanel