Simple multithreading

  • Thread starter Thread starter Grant
  • Start date Start date
G

Grant

I have some code that iterates through a directry doing stuff and I would
like to get the results text box I have on the windows form, to update
accordingly. I have a progress bar that was working fine but when I put the
textbox on the form the whole form blanks until the processing is complete.

How would I go about using threads to keep the form components updating
themselves?

Thanks for any help,
Grant
 
You are thinking about using
a = new System.Threading.Thread( addressof somesub )
a.start

?
 
Yeah something real simple like that. I need to be able to have two threads,
thread A updates the windows form components, textbox and progress bar, and
Thread B does all the work (Occasionally telling Thread A where its at).
 
Back
Top