Hello
I have a form which contains a Listview control that is filled with data as
the program runs. This all works fine, but I want to also then do a certain
process on this data at the same time.
Because of the way the data is received into the control (from an event out
of my hands) my processing causes problems as it is time-intensive. So, I
figure my processing should go in a separate thread so it can work without
stopping the information coming into the 'box. So far so good.
But how do I read and modify the items in the ListView from the other
thread? I have just started moving the code into another class that will
become the new thread and my control name gets underlined as not being
declared. Putting the form name in front (i.e. myForm.lstProgress) also
won't work.
Any thoughts? I saw an article on oassing data to and from threads with
callbacks and so on but will this work to link directly to a control?
Thanks
James.