title: Pass data from one form to another
body: <p>Today I account a question, In c# winform program.</p>
  
  <p>if there are <em>Form A</em> and <em>Form B</em>; Form B has a textbox (need to read only)</p>
  
  <p>The Form A code like this: </p>
  
  <pre><code>B b = new B("FormB");
  b.Show();
  </code></pre>
  
  <p>The FormB code like this:</p>
  
  <p><strong>Situation1:</strong></p>
  
  <pre><code>public B(string str)
  {
     this.textbox1.text = str;
  
     this.textbox1.Enable = false;
  }
  </code></pre>
  
  <p>I deploy the program to customer server, but the <code>textbox1.text = ""</code>, have no value, but it works in my local computer.</p>
  
  <p>I try this:</p>
  
  <p><strong>Situation2:</strong></p>
  
  <pre><code>public B(string str)
  {
      this.textbox1.text = str;
  
      this.textbox1.ReadOnly = true;        
  }
  </code></pre>
  
  <p>Then <code>texbox1.text = "FormB";</code> it works in my local computer and customer server.</p>
  
  <p>The key and important question is ,why the situation1 can works my local computer not works in customer server?</p>
  
  <p>Can anybody tell this is why?</p>