Is it possible to programmatically set the color property of a richtextbox to a system Color, rather than a custom color. For example (in the GUI, you could have System colors of type info, menu, window e.t.c)
Asked
Active
Viewed 114 times
0
-
How do i do that exactly? – user3845413 Mar 06 '15 at 18:57
-
2Instead of Colors.xxx use SystemColors.xxx: `richTextBox1.BackColor = SystemColors.Desktop;` – TaW Mar 06 '15 at 18:57
-
Use [SystemColors](https://msdn.microsoft.com/en-us/library/system.drawing.systemcolors.aspx) members to get the desired colors. And set the appropriate RichTextBox color property to its value. – Eugene Podskal Mar 06 '15 at 18:59
-
Thank you @Taw...Was trying System.Colors – user3845413 Mar 06 '15 at 18:59
-
possible duplicate of [Set form backcolor to custom color](http://stackoverflow.com/questions/2891686/set-form-backcolor-to-custom-color) – C1rdec Mar 06 '15 at 19:00