Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
TabPanel1.Initialize("")
MainForm.RootPane.AddNode( TabPanel1, 0,0,500,500)
TabPanel1.LoadLayout("TabPaneEmpty", "Test 1")
TabPanel1.LoadLayout("TabPaneEmpty", "Test 2")
TabPanel1.LoadLayout("TabPaneEmpty", "Test 3")
Private lblTest1 As Label
lblTest1.Initialize("")
Private tp As TabPage
tp = TabPanel1.Tabs.Get(0)
tp.Content.AddNode(lblTest1, 20, 20, 200, 40)
lblTest1.Text = "Pane 1"
Private lblTest2 As Label
lblTest2.Initialize("")
Private tp As TabPage
tp = TabPanel1.Tabs.Get(1)
tp.Content.AddNode(lblTest2, 20, 20, 200, 40)
lblTest2.Text = "Pane 2"
End Sub