I have started a new Windows form project, and added to the Form1
constructor the following:
Form2 form2 = new Form2();
form2.Show();
Form2 is just a new form with a checkbox added to it.
in the Form2 constructor I've added:
this.checkBox1.DataBindings.Add("Checked", this, "TopMost");
So, I was expecting that the Form2 wasn't hidden by Form1 when the
checkbox was checked, because i have bound Checkbox1.Checked property
to Form2.TopMost property. However, this doesn't work? Why???
I'm completely lost :(
If I change the databinding to:
this.DataBindings.Add("TopMost", this.checkBox1, "Checked");
it works as expected, but i can't understand why. isn't databinding
supossed to be conmutative?
Please help me!
Thanks,
Pedro.