title: Read arrays from other classes
body: <p>I wanted to simply use the 2D string array arrayStr1[i,j] defined in class Form3 further in a class Form6.</p>
  
  <pre><code>namespace Win2
  {
  public partial class Form3 : Form
  {
      Form2 fh;
      public Form3(Form2 call)
      {
          fh = call;
          InitializeComponent();
      }
      private void Form3_Load(object sender, EventArgs e)
      {
      }
  
      public void buttonRun_Click(object sender, EventArgs e)
      {
          string[,] arrayStr1 = new string[RowCount, ColCount];
      }
  </code></pre>
  
  <blockquote>
    <p>Error 1 says that there is no argument given that corresponds to the
    required formal parameter 'sender' of 'Form3.buttonRun_Click(object,
    EventArgs)'. </p>
    
    <p>Error 2 says that 'Form3' does not contain a definition
    for 'arrayStr1' and no extension method 'arrayStr1', although it's
    defined in Form3.</p>
  </blockquote>
  
  <pre><code>namespace Win2
  {
     public partial class Form6 : Form
     {
        Form2 fh;
        public Form6(Form2 call)
        {
           fh = call;
           InitializeComponent();
  
           Form3 data = new Form3(fh);
           data.buttonRun_Click();                  (error 1)
           string test = data.arrayStr1[1, 1];      (error 2)
       }
       private void Form6_Load(object sender, EventArgs e)
       {
       }
  </code></pre>
  
  <p>Thanks for your ideas.</p>