title: vb.net Pass Textbox Between forms.
body: <p>I have 2 forms. On Form1 I want to pass the textbox value to form 2 on load. This is what I thought would work. Form1 will be loaded and running and data will be populated in form1. I am exposing the property of the text box in form1. Then I am trying to use that exposed property in form2. </p>
  
  <pre><code>Public Class form1
  
  Public ReadOnly Property GetTextBox() As String
      Get
          Return txtbox1.Value
      End Get
  End Property
  </code></pre>
  
  <p>On form2 </p>
  
  <pre><code> Dim X As form1
   Me.TextBox1.Text = X.GetTextBox
  </code></pre>