title: Get textbox value from another value
body: <p>I'm trying to add a new user in my listbox.</p>
  
  <p>I'm opening a new form with 2 textboxes, name and email. 
  But when i click 'add' and get back to the parent form, i try to get those values in strings, but the problem is that my strings are empty...</p>
  
  <p>When i click on add in my new form, it just hides, so it returns back to the parent form.</p>
  
  <p>After i clicked on the button in frm2 it return to this code. but the strings are empty.</p>
  
  <pre><code>  //nieuw form openen
              frm2.Text = "add person";
              frm2.ShowDialog();
  
                //check
                string naam = Program.f.txtname.Text, email = program.f.txtemail.Text;
  
              //adding to listbox and 'string' list collection
              lstemail.Items.Add(naam);
              stremails.Add(email);
  </code></pre>
  
  <p>To get to my second form i use this.</p>
  
  <pre><code> static class Program
      {
          public static frmAdd f = new frmAdd();
          /// &lt;summary&gt;
          /// The main entry point for the application.
          /// &lt;/summary&gt;
          [STAThread]
          static void Main()
          {
              Application.EnableVisualStyles();
              //Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new frmemail());
          }
      }
  </code></pre>