سؤال

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