Don't let GUI be freezed with parallel.for due to the reading of a big array : I'm trying to get a big string text array from a TextBox where lines are string[].
It works but the problem is that with big datas in input the GUI of program is freezed for a moment while it processes the entire size of the array (differently from async functions which don't let GUI to lag). To avoid the freeze i'm trying to use parallel for but the result seems the same... How can i fix this?

                string[] text= new string[textBox.Lines.Length + 1];
                if (textBox.Lines.Length > 0)
                {
                    Parallel.For(0, textBox.Lines.Length, x =>
                    {
                        text[x] = textBox.Lines[x];
                    });
                }