Pass variable form to class and retrieve it from another form
<p>C# situation....i've set a value to a variable from another class using form1 using this...</p>

<p><strong>CLASS</strong>    </p>

<pre><code> public int _a;
        public int a
                {
                    get
                    {
                        return _a;
                    }
                    set
                    {
                        _a = value;
                    }
}
</code></pre>

<p><strong>Form 1</strong></p>

<pre><code>  private void btnchangevalue_Click(object sender, EventArgs e)
        {
class x = new class();
x.a = 1;
}
</code></pre>

<p><strong>Form 2</strong></p>

<pre><code>private void btngetvalue_Click(object sender, EventArgs e)
            {
    class x = new class();
   messagebox.show(x.a);
    }
</code></pre>

<p>the problem is the class variable that ive set always turns to <strong>null</strong> when i've tried to retrieve it..</p>
