title: foreach listview items from another thread
body: <p>I want to use foreach(ListViewItem item in objectListView1.Items) from another thread but I don't know how.</p>
  
  <p>My code:</p>
  
  <pre><code>        void createMoviesXML()
          {
              foreach (ListViewItem item in objectListView1.Invoke(new Action(() =&gt; objectListView1.Items)) // I know it's wrong
              {
                  if (Regex.IsMatch(item.SubItems[0].Text, @"&amp;amp;"))
                  {
                      item.SubItems[0].Text = Regex.Replace(item.SubItems[0].Text, @"&amp;amp;", "&amp;");
                  }
              }
          }
  
  private void Form1_Load(object sender, EventArgs e)
          {
              Thread thr1 = new Thread(new ThreadStart(createMoviesXML));
              thr1.Start();
  }
  </code></pre>