Adding ListBoxItems in a form, troughout a thread

  • Thread starter Thread starter Lakesider
  • Start date Start date
L

Lakesider

Hi Community,

I want to write loginformation in my mainform. The information should
tell the user about the workprogress of a thread in another class.
Is this possible with .Net 2.0?

Thanks
 
Hi,

You cannot add a listboxitem from a thread, what you can do is generate the
listboxitem in the thread and using Control.Invoke run the actual insertion
code in the UI thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top