如何在vb.net中生成透明tabcontrol? [英] How do I generate a transparent tabcontrol in vb.net?

查看:480
本文介绍了如何在vb.net中生成透明tabcontrol?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改backcolor属性tabcontrol?不是tabpage backcolor,或tab backcolor,只是tabcontrol一般。



我尝试过不同的方式。

我只想要我的tabcontrol所以它是半透明的



提前谢谢。

How do I change the backcolor property tabcontrol? Not tabpage backcolor, or tab backcolor, just the tabcontrol in general.

I've tried different ways.
I just want my tabcontrol so it is translucent

Thanks in advance.

推荐答案

标签控件没有backcolor属性但是tabpage确实如此。您可能正在寻找的是更改标签页Tab的颜色,该标签页是您单击以移动到另一个选项卡的部分。可以通过覆盖tabControl的OnPaint方法来修改它。 CP中有一些很好的例子可以证明这种技术。搜索自定义tabcontrol。我最喜欢的:

绘制自己的标签 - 第二版 [ ^ ]



regs

ron O。
The tab control does not have as backcolor property but the tabpage does. What you might be looking for is to change the color of the tabpage "Tab", the part that you click to move to another tab. That can be modified by overridng the OnPaint method of the tabControl. There are some good examples in CP which demonstrate this technique. Search "Custom tabcontrol". My favorite:
Painting Your Own Tabs - Second Edition[^]

regs
ron O.


这篇关于如何在vb.net中生成透明tabcontrol?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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