title: Call Form2 property in main form(Form1)
body: <p>I have tried others suggestion for using this type and somehow manage to run it, but now I have using the same way but having an error as</p>
  
  <p><strong>Error :</strong>'  FYP.Form6.listBox1' is inaccessible due to its protection level</p>
  
  <p>I am enclosing code below</p>
  
  <pre><code>Form6 frm4 = new Form6(this.listbox1);
  
          for (int i=0;i&lt;frm4.listBox1.Items.Count;i++)
          {
              // &lt;P&gt;
              xmlWriter.WriteStartElement("P");
              xmlWriter.WriteAttributeString("","DISP","",frm4.listBox1.Items[i].ToString());
              xmlWriter.WriteString(frm4.listBox2.Items[i].ToString());
              // &lt;/P&gt;
              xmlWriter.WriteEndElement();
          }
  </code></pre>