This question has already been answered:
There is a program in which there is a stream, something is executed there, and then you need to put it all into a list. Nothing happens. Long search found such a solution
this.Invoke((MethodInvoker)delegate() { listBox1.Items.Clear(); listBox1.Items.AddRange(names); }); but this option is also not suitable, an exception occurs
"The exception type" System.ArgumentNullException "occurred in System.Windows.Forms.dll, but was not processed in the user code"
If you click continue, then an Exception is triggered.
value cannot be null. parameter name: item
Framework 4.5. I do not understand what's wrong.
ps in sharpe recently, mainly deal with java