title: Visual C# - Access instance of object created in one class in another
body: <p>I apologize in advance with what will probably be a fairly easy/quick answer based on scope, but I've looked everywhere and am surprised to not come up with an answer. </p>
  
  <p>I have created a class called <strong>Soldier</strong> with roughly 100 class variables. I need a user to enter information and gradually build a <strong>Solider</strong> object over the course of several different class Forms (because there is too much data to collect on just one).</p>
  
  <p>I create an (empty) instance of a Soldier (tempSoldier) in <strong>Form1.cs</strong> and start to <strong>set</strong> the object's class variables that I collect from the user. </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      Soldier tempSoldier = new Soldier();
      tempSoldier.surname = textbox1.text;
  }
  </code></pre>
  
  <p>My question: how do I gain access to the object instance (tempSoldier) from Form1.cs in the other classes (Form2.cs, Form3.cs ...)?</p>
  
  <p>I should mention that all of the Forms (Form1.cs, Form2.cs ...) share the same namespace.</p>
  
  <p>Thanks in advance</p>
  
  <p>Edit: All solutions below work so it just depends upon which one you like the best. Thank you for your feedback.
  One little note, make sure you make ALL of the class modifiers Public including your custom class (in my case Soldier.cs).</p>