title: Calling textbox information from one form to another
body: <p>I have 2 forms: The first form has textboxes that display different task names and times spent on each task. The second form has a <code>datagridView</code>. Using:</p>
  
  <pre><code>        public void DataTableTest()
      {
          //Create DataTable 
          DataTable dt = new DataTable();
          //Add Columns
          dt.Columns.Add("Task Name", typeof(string));
          dt.Columns.Add("Time Worke (HH:mm:ss)", typeof(string));
          //Add Rows
          dt.Rows.Add();
          dataGridView1.DataSource = dt;
      }
  </code></pre>
  
  <p>I am able to get the data table layout the way I want. My issue is, I want to pull the <code>textbox.text</code> from <code>Form1</code> to populate the <code>[0][0]</code> cell of the data table. Something like:</p>
  
  <pre><code>        //Add Rows
          dt.Rows.Add();
          dt.Rows[0][0] = Form1.tasktextbox1.text;
          dataGridView1.DataSource = dt;
  </code></pre>
  
  <p>But this is not working. I am getting the following from my error list when I try to start the program: </p>
  
  <blockquote>
    <p>'TaskTracker.Form1.TaskTextBox1' is inaccessible due to its protection level. </p>
  </blockquote>
  
  <p>Thank you in advance for the assistance. If you have any questions ask, first time posting and new to programming.</p>