C # /. NET - How to trigger an update of a list from another thread

It seems like I'm being denied access (like updating) my list view control from a thread other than the main thread.

How can I do some threading task and then somehow signal to start updating the list?

+2


source to share


1 answer


To make changes, you need to call Invoke ().

The reason is explained here: http://blogs.msdn.com/davidklinems/archive/2006/03/09/548235.aspx



How to do this with an example is shown here: http://msdn.microsoft.com/en-us/library/ms171728%28VS.80%29.aspx

Most of the changes have to be made from the main thread, so you need to go back to that in order to update.

+5


source







All Articles