如何更改 Winforms 中选项卡控件的背景颜色? [英] How do I change background colour of tab control in Winforms?

查看:36
本文介绍了如何更改 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.

这篇关于如何更改 Winforms 中选项卡控件的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆