如何更改 Winforms 中选项卡控件的背景颜色?

问题描述:

有没有办法在 winforms 中更改选项卡控件的背景颜色,使其周围没有白色边框?

Is there a way to change the background colour of a tab control in winforms, so that it does not have the white border around it?

我尝试了几种不同的方法,但它们都导致显示相同的白色边框.

I have tried a few different ways, but they all result in the same white border being displayed.

TabControl 对自定义的支持很差.我已经成功使用了这个自定义选项卡控件.如果您想像我一样更改外观,该代码非常有用.

TabControl has very poor support for customization. I've used this custom tab control with good success. The code is pretty usable if you want to change the look as I did.