### Set Default Item

To set a default item, use the IndexOf subroutine.
Example
`Sub Process_Globals
Private ChoiceBoxSceneBuilder As ChoiceBox
...
End Sub`
'Populate items
ChoiceBoxSceneBuilder.Items.AddAll(Array As String("Item1", "Item2", "Items3"))
'Set Item 2 as default
Dim index As Int = ChoiceBoxSceneBuilder.Items.IndexOf("Item2")
If index > -1 Then ChoiceBoxSceneBuilder.SelectedIndex = index

Changed: , Category: ComboBox, File: T6C175M1272.htm, ID: 1272