更改ToolStripSeparator控件的BackColor [英] Change the BackColor of the ToolStripSeparator control
本文介绍了更改ToolStripSeparator控件的BackColor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改ToolStripSeparator控件的BackColor? 设计器中有一个BackColor属性,但似乎没有使用-颜色始终为白色.
Is it possible to change the BackColor of ToolStripSeparator control? There is a BackColor property in the designer, but it doesn't appear to be used - the color is always white.
推荐答案
默认的toolstrip
渲染器忽略BackColor属性,并使用硬编码的颜色.
The default toolstrip
renderer ignores the BackColor property and uses hard-coded colors.
您可以参考以下链接,以使用自己的渲染器以所需的方式绘制分隔符.
You can refer following link to use your own renderer to paint the separators the way you want them.
http://social.msdn.microsoft.com/forums/zh-CN/winforms/thread/6cceab5b-7e06-40cf-82da-56cdcc57eb5d
这篇关于更改ToolStripSeparator控件的BackColor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文