title: How to access getter function in different form?
body: <p>I have two forms in one project/namespace that need to communicate with one another.  Form A creates an instance of form B; and form B needs to access a value in form A (seems simple enough).  </p>
  
  <p>I have created this type of functionality when building forms from the ground up in VB. This time I am working on a pre-existing project, and I cannot get form B to access form A's value.  What is causing this issue, and how could I solve it?</p>
  
  <p>Thanks for the help!</p>
  
  <p>I created a getter function in form A: </p>
  
  <pre><code>public string getID()
          {
              return txtID.Text;
          }
  </code></pre>
  
  <p>Then I try to access this method in form B:</p>
  
  <pre><code>string strID = getID();
  </code></pre>
  
  <p>The error I get is: "The name 'getID' does not exist in the current context"</p>
  
  <p>Also, I tried accessing the function this way (but it did not work):</p>
  
  <pre><code>A.getID();
  </code></pre>