Page 1 of 1
transfer TouchComboBox Items to Listbox via script
Posted: Tue Aug 04, 2015 8:25 am
by ozermania
Hello;
How can i read TouchComboBox items and transfer to listbox via scripting?
regards
Re: transfer TouchComboBox Items to Listbox via script
Posted: Fri Oct 30, 2015 10:01 am
by Claus Nielsen
My experience says that you cant. Not with the "Touch" controls as you can't acces the items or add new items at runtime. (Makes them a little useless)
You can do it if you use the alternative windows form controls "ComboBox" and "ListBox" also found by default in iX.
Using a foreach as the controls doesn't support the ".DataSource" property.
Code: Select all
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
foreach (var item in ComboBox.Items)
{
ListBox.Items.Add(item);
}
}