Private Sub Application_Start
Initialize pages (Page1, Page2...)
Call Sub that create Page1 Layout
Show Page1
End Sub
Private Sub CreatePage1Layout
Initialize views of Page1
End Sub
Private Sub Page1_Resize(Width As Int, Height As Int)
Add all views of Page1 into Page1.RootPanel here
End Sub
Private Sub ButtonToOpenPage2_Click
Call Sub that create Page2 Layout
Show Page2
End Sub
Private Sub CreatePage2Layout
Initialize views of Page2
End Sub
Private Sub Page2_Resize(Width As Int, Height As Int)
Add all views of Page2 into Page2.RootPanel here
End Sub
.......