How to change the background color of unused space tab in C# winforms?(如何更改 C# winforms 中未使用空间选项卡的背景颜色?)
问题描述
前
我可以改变 Tab
的 backcolor
和 forecolor
.. 但我想改变那个 { } 的颜色 --> 空白空间可以做到这一点...它显示默认的winforms颜色..帮助我在dis..
I am able to change the backcolor
and forecolor
of Tab
.. but I want to change the color of that { } -- > Empty space is this possible to do that. .. It shows default winforms color..help me in dis..
推荐答案
我认为给那个空间一个颜色的唯一方法是覆盖窗口的 OnPaintBackground
方法,所以把这个粘贴到你的表单(窗口)
I think the only way to give that space a color is to override the OnPaintBackground
method of the window, so just paste this on your form (window)
您还必须将外观属性更改为正常"
you must also change the Appearance Property to "Normal"
对我来说效果很好
这篇关于如何更改 C# winforms 中未使用空间选项卡的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!