It seems to me more a logic issue than a specific language issue.
Your background thread would need to invoke the main thread to update and draw. Any secondary thread must not update the UI as it can/will cause locks.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
Offline 1,735 posts
since Aug 2008