Mistake with receiving bool variable between two forms
<p>All.</p>

<p>I want to receive checkbox1 data from form1 to form2. I used get and set methods to receive meaning of variable. I used this code for this. But it didn't work. Why? Where is the problem?</p>

<p>form1.cs</p>

<pre><code>...
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form2 test = new Form2();
            test.checkBox1 = checkBox1.Checked;
            test.Show();
        }
    }
}
</code></pre>

<p>form2.cs    </p>

<pre><code>    ...
namespace WindowsFormsApplication1
    {
        public partial class Form2 : Form
        {
            private bool data7;

            public Form2()
            {
                InitializeComponent();
            }

            public bool checkBox1 
            {
                get { return data7; }
                set { value = data7; } 
            }

            private void Form2_Load(object sender, EventArgs e)
            {
                if (data7 == true)
                {
                    label1.Text = "true";
                }
                else
                {
                    label1.Text = "false";
                }
            }
        }
    }
</code></pre>
