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
-
*Updated* 21 March 2011: Updated how "Coded UI tests" finds a control with info from Balagans Blog - How does “Coded UI test” fin...
-
If you get this nice error message, you are probably lost, because there is no hints on WHY!!!??? Microsoft Visual Studio ------------...
-
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 ,...

No comments:
Post a Comment