protected void FixWeirdStyles() { //fix for windows with weird styles if (this.txtLogConsole.ForeColor.ToArgb() == this.txtLogConsole.BackColor.ToArgb()) { //this happens on some windows configurations: this.txtLogConsole.ForeColor = System.Drawing.SystemColors.WindowText; } }