title: Passing data from one Form to another
body: <p>I have two forms in one of my projects. In form1 I have a dataGridView and In form2 I have 4 TextBoxes.
  in Form1, I want to get a value in a variable from a datagridview using CellMouseClick event and then pass it to a TextBox in Form2</p>
  
  <p>I have tried this.</p>
  
  <p>form1 # it give me an Error</p>
  
  <pre><code>public form(int id)
  {
      int x;
      x = dataGridView1.CurrentRow.Cells[0].Value.ToString();
  }
  </code></pre>
  
  <p>and what iam suppose to do in the form2</p>