DesktopPagePanel.RemovePanelAt
From Xojo Documentation
Method
DesktopPagePanel.RemovePanelAt(Index as Integer)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
Removes the page at the Index passed. The first panel is numbered zero.
Notes
It will also remove all of the controls on the panel.
Example
This example removes the first panel.
PagePanel1.RemovePanelAt(0)