Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: transfer TouchComboBox Items to Listbox via script
PostPosted: Tue Aug 04, 2015 8:25 am 

Joined: Tue Aug 04, 2015 7:40 am
Posts: 1

Offline
Hello;

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

regards


 Profile  
 
 Post subject: Re: transfer TouchComboBox Items to Listbox via script
PostPosted: Fri Oct 30, 2015 10:01 am 

Joined: Sun May 31, 2015 2:38 am
Posts: 14

Offline
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:
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
           foreach (var item in ComboBox.Items)
           {
                     ListBox.Items.Add(item);
           }
}


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron