title: C#, access (get or read) the textBox values in a static method?
body: <p>I have a form (form1) that has a text field (textBox1)
  I have a class that has the method "public static string getValue()"</p>
  
  <p>how I can read the value of the textBox1 within the method getValue() ??</p>
  
  <p>here is my code</p>
  
  <pre><code>namespace MyProgram
  {
      public partial class Form1: Form
      {
        ---------------------------------
        ---------------------------------
        ---------------------------------
      }
  }
  </code></pre>
  
  <p>the other class</p>
  
  <pre><code>namespace MyProgram
  {
      class values
      {
  
          public static string getValues()
          {
  
              string v;
              v = ------get value from textBox1 in Form1
              return v;
          }
  
      }
  }
  </code></pre>
  
  <p>the whol software is build in this structure, so I hope there is some standard way in C# to get these values in the method getValue()</p>