title: C# what is the best way to parallelize Form Instances?
body: <p>I have a main class that creates <code>FormAccount</code> instances with a custom constructor that execute some initialization methods that are time consuming and I need to parallelize it.</p>
  <p>What is the proper and efficient way to parallelize it? I am using parallel task as follows but is not working as desired.</p>
  <pre><code>Parallel.For(0, numAccounts, i =&gt;
  {
      //create form instances
      FormAccount formAccount = new FormAccount(listAccountsParams[i]);
      listAccountsForms.Add(formAccount);
  
      //show all forms
      listAccountsForms[listAccountsForms.Count() - 1].Show();
  });
  </code></pre>