Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能知道如何将richtextbox的背景色设置为与表单的默认背景色相同?
如果您在表单类代码中设置背景颜色,那么您可以简单地编写
rtb.BackColor = Me.BackColor
RichTextBox1.BackColor = Form1.BackColor
或者
RichTextBox1.BackColor = System.Drawing.SystemColors.Control