binding a usercontrol to the opposite of a bool property

Posted by SnOrfus on Stack Overflow See other posts from Stack Overflow or by SnOrfus
Published on 2010-03-17T16:41:40Z Indexed on 2010/03/17 16:51 UTC
Read the original article Hit count: 282

Filed under:
|
|

Pretty straightforward: I'm looking to do the same as this but in winforms. Everything that google seems to pull up is wpf specific (ie. I don't want to reference presentationframework.dll)

Explained if you don't want to read the link:

The following is a representation of the intent of what I'd like to do, though it obviously doesn't work.

CheckBox1.DataBindings.Add(new Binding("Checked", this.object, "!SomeBool"));

© Stack Overflow or respective owner

Related posts about winforms

Related posts about c#