Dim Profile as Button ' added this morning
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
Page1.RootPanel.LoadLayout("main2") 'error occurs on this line
NavControl.ShowPage(Page1)
End Sub
...
'added this morning
Sub Profile_click
ProfileManager.Start()
End Sub