title: Get the value of a property from a Class in Form2, and that value have been set in Form1 in C#
body: <p>Here is the scenario. I want to set the value of Server in Class1, i am setting the value in Form1.
  Then get the value of Server in Class1 in Form2. Here is what i have.</p>
  
  <pre><code>class Class1
  {
      private string server;
  
      public string Server
      {
          get { return server; }
          set { server = value; }
      }
  }
  
  //Form1 where i want to set the value of server
  private void setBtn_Click_1(object sender, EventArgs e)
  {
      Class1 sample = new Class1();
      sample.Server = serverTxt.Text;
  }
  
  //Form2 where i want to get the value of server that i've set in Form1
  private void setBtn_Click_1(object sender, EventArgs e)
  {
      Class1 sample = new Class1();
      string serVer = sample.Server;
  }
  </code></pre>
  
  <p>I know i can't have a value of server because i declared a new instance of Class1. But is there any way that i can still get the value of Server in Form2 that i have set in Form1?</p>
  
  <p>Please spare with me, i am new in C#, thanks in advance guys :D</p>