### ChangeTab Set TabPage View Properties

Example of setting a label text when changing a tab.
The example TabPane, Private tpMain As TabPane, has 3 TabPages which are using 1 layout (TabPane.bjl).
The layout contains a pane with a label at the top and bottom.
The label text to change is the label at the top, with properties
Name: lblTabPageTop, Tag: lbltabpagetop
The event TabChanged of the view tpMain searches for the Label Node and checks its Tag.
If the Tag = lbltabpagetop, then the label text is set accordingly.
`Sub tpMain_TabChanged (SelectedTab As TabPage)
If SelectedTab.IsInitialized Then
MainForm.Title = "TabPage selected = " & SelectedTab.Text & " (ID: " & SelectedTab.Id & ")"
'Search for the label with Tag lbltabpagetop
For Each n As Node In SelectedTab.Content.GetAllViewsRecursive
If n Is Label And n.Tag = "lbltabpagetop" Then
'Assign the node to a temporary label and change the text
Dim lbl As Label = n
lbl.Text = MainForm.Title
End If
Next
End If
End Sub`

Changed: , Category: TabPage and TabPane, File: T6C260M1911.htm, ID: 1911