title: Accessing form1 variables from another class how?
body: <p>how do I access form1 string variable from a different class?</p>
  
  <pre><code> public partial class Form1: Form
   {  
       public Form1()
       {
           InitializeComponent();
       }
  
       public string deva = "123";
  
       //button
       private void button8_Click(object sender, EventArgs e)
       {
           deva = "456";
       }
  
       private void button9_Click(object sender, EventArgs e)
       {
           Other ks = new Other();
           ks.test_me();
       }
  }
  
  public class Other: Form1
  {
      //trying to access Form1 variable.
      public void test_me()
      {
          Form1 fm = new Form1();
          MessageBox.Show(fm.deva);
          //deva is 123 but not 456. 
          //I clicked on button and values changes it form1 however from here it assigns just default value
      }
  
  //
  //Does creating a new form1 will reset its values?
  //Somebody please help me. how to solve this issue.
  }
  </code></pre>