문제

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