I use following code to set items of ChoiceBox Cbx001 in AppStart, Cbx001 is on the form using designer. It is much slower than I expect as I though it should be no time, but I can see the form appears for around 2 seconds. Is this the right way to set items? Thanks.
B4X:
Dim lst As List
lst.Initialize
For i = 60 To 240
lst.Add(i)
Next
Cbx001.Items.AddAll(lst)
Cbx001.SelectedIndex = 2
Thanks Erel. Combobox does show in almost no time! however I like the style of choicebox and found it is hard to style the combobox, the dropdown lists are very different between choice and combo.