I\'m trying to figure out how to work with the Task class. In the past I have always used the regular Thread class, but I\'m trying to grasp all of the asynchronous programm
Task.WaitAll blocks and waits for all task to complete and you are calling it on the UI thread.
Task.WaitAll
All your task are trying to call richTextBox1.Invoke (in the UI thread) but your UI thread is blocked in Task.WaitAll. Deadlock.
richTextBox1.Invoke