B4J Question ComboBox/ChoiceBox does not showing items added

tcpip

Member
Licensed User
Hi all,

I added from the designer in a form a comboBox and type the following:

Under Process Globals: Public combo2 As ComboBox

Under Appstart:

combo2.Initialize("")
combo2.Items.Add("AAAA")
combo2.Items.Add("BBBB")

When i run the app, i click on comboBox and do nothing. Does not show the items added.

I tried the same with choiceBox but i get the same results.

Any ideas??


Thanks
 

tcpip

Member
Licensed User
if you added them with the designer and you are loading this layout then you should NOT initialize them.
Thank you very much for your reply.
I tried to remove the initialize and got error.

But after reading your message, i add the lines after showing the form and works!!!


Thanks!!!!
 
Top