TabControl中的轨迹栏背景 [英] Trackbar Background in a TabControl

查看:157
本文介绍了TabControl中的轨迹栏背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在TabControl内的TabPage上有一个TrackBar控件. TrackBar的背景绘制为灰色,而TabPage的绘制为白色.无法将TrackBar的BackColor属性设置为透明,并且我无法覆盖图形,因为TrackBar没有DrawMode属性.要使TrackBar合适,我必须选择哪些选项?为什么它不支持视觉样式?

I have a TrackBar control on a TabPage inside a TabControl. The background of the TrackBar is being drawn in grey while the TabPage is being drawn as white. There is no way to set the BackColor property of the TrackBar to transparent, and I can't override the drawing because there is no DrawMode property for the TrackBar. What options do I have to make the TrackBar fit in? Why doesn't it support visual styles?

推荐答案

您可能想看看 TransparentTrackBar CodePlex上的项目.

You might want to look at the TransparentTrackBar project on CodePlex.

这篇关于TabControl中的轨迹栏背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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