T tcpip Member Licensed User Longtime User Oct 21, 2019 #1 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
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
DonManfred Expert Licensed User Longtime User Oct 21, 2019 #2 tcpip said: I added from the designer in a form a comboBox and type the following: Click to expand... if you added them with the designer and you are loading this layout then you should NOT initialize them. Upvote 0
tcpip said: I added from the designer in a form a comboBox and type the following: Click to expand... if you added them with the designer and you are loading this layout then you should NOT initialize them.
T tcpip Member Licensed User Longtime User Oct 21, 2019 #3 DonManfred said: if you added them with the designer and you are loading this layout then you should NOT initialize them. Click to expand... 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!!!! Upvote 0
DonManfred said: if you added them with the designer and you are loading this layout then you should NOT initialize them. Click to expand... 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!!!!
DonManfred Expert Licensed User Longtime User Oct 21, 2019 #4 tcpip said: after showing the form Click to expand... it is not needed to add them after the form is showing... You should just place them AFTER the Loadlayout line. Upvote 0
tcpip said: after showing the form Click to expand... it is not needed to add them after the form is showing... You should just place them AFTER the Loadlayout line.
T tcpip Member Licensed User Longtime User Oct 21, 2019 #5 DonManfred said: it is not needed to add them after the form is showing... You should just place them AFTER the Loadlayout line. Click to expand... You are right!!! Thank you for your help!!! Upvote 0
DonManfred said: it is not needed to add them after the form is showing... You should just place them AFTER the Loadlayout line. Click to expand... You are right!!! Thank you for your help!!!