المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to update a listbox in another thread in another class



C# Programming
02-05-2010, 11:23 PM
Hi,
i need to add some items to a listbox in another thread and another class.

The secont thread passes a ListBox item to the invoking function but i cannot access its listbox.items.add functionality. I can only set values to the common parameters to all Controls (i.e. text, name etc.) How could this be solved?

ty