Can anyone know how to set the backcolor of a richtextbox same as default backcolor of a form??

有帮助吗?

解决方案

RichTextBox1.BackColor = Form1.BackColor

Or

RichTextBox1.BackColor = System.Drawing.SystemColors.Control

其他提示

If you are setting the backcolor inside the form class code then you could simply write

rtb.BackColor = Me.BackColor
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top