Is in this documentation not so easy to find... But it works with the Bitwise XOR Assignment Operator! FontStyle fontStyle = this.textBox1.Font.Style; fontStyle = FontStyle.Italic FontStyle.Bold; fontStyle = fontStyle ^ FontStyle.Bold; //Removes the flag Bold from the fontStyle flagAttributes list http://msdn2.microsoft.com/de-de/library/system.flagsattribute(VS.80).aspx
Popular Posts
-
I am *very* keen on automating tests, so I was looking into unit testing a WCF service. If I say "unit test", I mean a fast ,...
-
MVC is awesome. I love the nice and clean HTML output, and the nice separation of concerns!! Not to mention how easy we can test the co...
-
It's easy I thought, just select the Property of the EntityType and set the Default Value in the Properties window to: DateTime.Now ...

No comments:
Post a Comment