title: How to send data from one form to another to create a chart
body: <p>Is it possible to calculate numbers in one form and use it to make a chart in a second form? </p>
  
  <p>I just want to show a line graph which gets the data from a set of numbers being calculated. </p>
  
  <p>I have only been using c# for a week, the only way I know how to make a chart is using <code>numericUpDown</code> on the current form which is not what I want.</p>
  
  <p>like so ...</p>
  
  <pre><code>Point[] pts = new Point[1000];
  int count = 0;
  
  pts[count++] = new Point((int)numericUpDown1.Value, (int)numericUpDown2.Value);
  
  for (int i = 0; i &lt; count; i++)
  {
      if (i != 0)
      {
          this.CreateGraphics().DrawLine(new Pen(Brushes.Red, 4), pts[i - 1], pts[i]);
      }
      else
      {
          this.CreateGraphics().DrawLine(new Pen(Brushes.Red, 4), pts[i], pts[i]);
      }
  }
  </code></pre>