title: Textbox1.text from form1 to form2
body: <p>I need help passing input in Form2.textbox1 to Form1.sti
  Form1 = Main working window
  Form2 = Popup window, to enter path.</p>
  
  <pre><code>public partial class Form2 : Form
  {
      public Form2()
      {
          InitializeComponent();
      }
  
      private void Form2_Load(object sender, EventArgs e)
      {
  
      }
  
      public string sti { get; set; }
  
      private void button1_Click(object sender, EventArgs e)
      {
          textBox1.Text = sti;
          this.Close();
      }
  }
  
  public partial class Form1 : Form
  {
      int CountR = 1;
  
      public Form1()
      {
          InitializeComponent();
      }
  
      public string sti { get; set; }
  
      public void Form1_Load(object sender, EventArgs e)
      {
          Form2 popup = new Form2();
          popup.ShowDialog();
          popup.Dispose();
      }
     public void button1_Click(object sender, EventArgs e)
      {                
      Label7.Text = sti; 
       }
  </code></pre>
  
  <p>But it always returns Null. </p>
  
  <p>I've builded it this way because I don't want user to mess with the path only IT administrators. </p>
  
  <p>Thank you in advance</p>