title: Put a value in a read-only textbox vb.net
body: <p>I have a form with many textboxes. I would like to disable the operation of user interaction with 2 or more textboxes but i would like to assign some text to it. I cannot figure it out a way to do it ... </p>
  
  <p>I have the following code:</p>
  
  <pre><code> If tablead.Rows(0)(4) = True Then
          TextBox2.Text = "0"
          TextBox2.ReadOnly = True
          TextBox2.Text = "0"
   End If
  </code></pre>
  
  <p>When i run it the textbox goes "read-only" but the value 0 is not shown. Why ? </p>