title: C# get textBox value from another Form
body: <p>I have Login form where <code>textBox1</code> contain user ID.I'm trying to use entered ID in another windows form.In LOGIN Form <code>strvalue</code> have ID, but in Another Form <code>strvalue</code> is empty.  Sorry for dumb question.</p>
  
  <p>code - LOGIN Form:</p>
  
  <pre><code>public static string strvalue = "";
  
  private void button22_Click(object sender, EventArgs e)       
  {       
      strvalue = textBox1.Text;   
  }
  </code></pre>
  
  <p>code Another Form:</p>
  
  <pre><code>LOGIN LF = new LOGIN();
  
  MessageBox.Show(LF.strvalue);
  </code></pre>