title: Using ref with in 2 forms..?
body: <p>I have 2 forms.. </p>
  
  <p>from first form i call 2nd form... in second form i do some calculations and i want to get the result in first form after closing second form.</p>
  
  <h2>First Form Code</h2>
  
  <pre><code>public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
  {
      String s = "";
      public XtraForm1()
      {
          InitializeComponent();
      }
  
      private void simpleButton1_Click(object sender, EventArgs e)
      {
          s = textEdit1.Text;
          XtraForm2 x = new XtraForm2(ref s);
  
          x.ShowDialog();
          MessageBox.Show(s); // Here I want to get the data from 2nd form.
      }
  }
  </code></pre>
  
  <h2>2nd Form Code</h2>
  
  <pre><code>public partial class XtraForm2 : DevExpress.XtraEditors.XtraForm
  {
      string s2 = "";
      public XtraForm2(ref string s1)
      {
          InitializeComponent();
          s2 = "hai";
          s1 = s2;
      }
  
      private void simpleButton1_Click(object sender, EventArgs e)
      {
          // here i do some operations and i want to store it in variable s1 so that i will get the result in 1st form.
          this.Close();
      }
  }
  </code></pre>