title: Can't change textBox.text in form from other classes - C# - VS 2010
body: <p>I have a form called Form1. In it, I have a button called Encrypt. When I hit that button I invoke a method in a different class. I want that method to change the value of textBox1.text but nothing happens when I use this code</p>
  <h1>in Form1 class</h1>
  <pre><code>public string txtbox1
      {
          get
          {
              return textBox1.Text;
          }
  
          set
          {
              textBox1.Text = value;
          }
      }
  </code></pre>
  <h1>in a method in the other class</h1>
  <pre><code>Form1 textboxes = new Form1();//creating object of the Form1 class
          textboxes.txtbox1= &quot;whatever&quot;;
  </code></pre>
  <p>Nothing changes in the first text box. It's like I don't press anything at all!!!</p>
  <p>Any help would be very appreciated</p>