Please help me, I cannot access variable or checkbox state from another class. My code is:
Form1 kol = new Form1();
if (kol.checkBox1.Checked) StartVpnCon();
MessageBox.Show(kol.checkBox1.Checked.ToString());
-----------
But MessageBox always show "false" no matter of the real checkbox state.
Form1 kol = new Form1();
if (kol.checkBox1.Checked) StartVpnCon();
MessageBox.Show(kol.checkBox1.Checked.ToString());
-----------
But MessageBox always show "false" no matter of the real checkbox state.