I have a form with text box and button. On click of button I’m creating a thread and invoking it for some operation. once the thread completes the invoked task, I want to update the text box with the result.
any one please assist me how can I achieve this without thread clash.
This is far simpler using .NET 4.0’s
Taskclass:If you’re using .NET 4.5, you can simplify this further using the new async support: