transfer TouchComboBox Items to Listbox via script

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
ozermania
Posts: 1
Joined: Tue Aug 04, 2015 7:40 am

transfer TouchComboBox Items to Listbox via script

Post by ozermania »

Hello;

How can i read TouchComboBox items and transfer to listbox via scripting?

regards

Claus Nielsen
Posts: 18
Joined: Sun May 31, 2015 2:38 am

Re: transfer TouchComboBox Items to Listbox via script

Post 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);
		     }
}

Post Reply