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.
我想知道我是否可以在 C# 透明中绘制标签页的背景,这样我就可以看到窗口本身的后面。我虽然它会产生很酷的效果,但我不知道是否或如何做到这一点。
您可以将TabControl的Appearance属性设置为Buttons而不是使用 BackColor 属性。这将带来透明的标签页外观和酷炫的效果。
VB & C# 语法
TabPage1.BackColor = Color.Transparent
这会将 tabpage1 颜色显示为表单颜色。