title: Changing text box content on a VB.net form from a class
body: <p>This seems like a trivial problem but I just can't get it to work and have spent the last 30 minutes going round in circles :-(</p>
  
  <p>I've got a form with a text box on it and an object handler which is located in a separate class.  I'd like to update the content of the text box with the output from the object handler.</p>
  
  <p>I'm trying to access it this way:</p>
  
  <pre><code>formName.textBoxName.Text = value
  </code></pre>
  
  <p>but nothing happens.  I can, however, read the status of buttons on the same form so I'm confused.  It appears that I can access some of the form controls from my class but only read only ?</p>
  
  <p>I know I'm getting output from my class because I can view it in the debug window.</p>
  
  <p>I've tried changing the modifier property of the text box with no difference - I'm sure that it's a dumb mistake that I've made but I just can't see it.</p>
  
  <p>How can I change my textBox value from another class ?</p>
  
  <p>Here's my code:</p>
  
  <p>Class: Summarizer.vb</p>
  
  <pre><code>If frm_Settings.btn_NextSection.Enabled = True Then
      Console.WriteLine("Boo!")
      frm_Settings.txt_NextSection.Text = "Boo!"
  End If
  </code></pre>
  
  <p>Form: frm_Settings consists of (amongst other things) a text box txt_NextSection and a button btn_NextSection.  The value of the button is being read correctly but the textbox content cannot be set.</p>
  
  <p>thanks in advance</p>