I have this simple code:
Parallel.Invoke( () => picturebox_1.Refresh(), () => picturebox_2.Refresh()); and I'm getting this:
Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.
How can I resolve this issue? I just want to run the refresh in parallel, the refresh method runs the Paint Event which has code to render an image...
Thanks!