title: How can ListView entries be transferred from Form2 to an identical ListView in Form1?
body: <p>Much has been written about it, but I have found nothing suitable for my problem. In a <code>ListView in Form2</code> data is inserted from textBoxes. The <code>Form2</code> is then closed via a <code>submit button</code>. This should transfer the entries to the identical <code>ListView</code> in<code>Form1</code>. This does work from textBox to textBox, but from ListView to ListView not. Is there a simple solution for this? Many Thanks.</p>
  
  <p>Entries createt in <code>ListView1 form2</code>.</p>
  
  <pre><code>private void btnInsert_Click(object sender, EventArgs e)
      {
          listView1.FullRowSelect = true;            
  
          ListViewItem item = new ListViewItem("1");
          item.SubItems.Add(txtEntry_1.Text);
          item.SubItems.Add(txtEntry_2.Text);
          listView1.Items.Add(item);
      }
  </code></pre>
  
  <p>In <code>form2</code> the following is written.</p>
  
  <pre><code>private void btnSubmit_Click(object sender, EventArgs e)
      {
          Form1 frm1 = new Form1();            
          this.Close();
      }
  </code></pre>
  
  <p>And in <code>form1</code> then the following.</p>
  
  <pre><code>private void btnOpenForm2_Click_1(object sender, EventArgs e)
      { 
          Form2 frm1 = new Form2();
          frm1.ShowDialog();
  
          //listView to ListView does not work
          listView1.Items[0].SubItems[1] = frm1.listView1.Items[0].SubItems[1];
  
          //textBox to TextBox works
          txtTest1.Text = (Double.Parse(txtTest1.Text) + Double.Parse(frm1.txtTest2.Text)).ToString("0.00");              
      }
  </code></pre>
  
  <p>Update: A simple solution. <code>Form2</code></p>
  
  <pre><code>private void btnInsert_Click_1(object sender, EventArgs e)
      {                
              Form2 frm1 = new Form2();
              frm1.ShowDialog();
  
              foreach (ListViewItem item in frm1.listView1.Items)
              {
                  this.listView1.Items.Add((ListViewItem)item.Clone());
              }
      }
  </code></pre>
  
  <p>and  <code>Form1</code></p>
  
  <pre><code>private void btnSubmit_Click(object sender, EventArgs e)
      {             
          Form1 frm1 = new Form1();            
          this.Close();           
      }
  </code></pre>