我在表单上使用工具栏和面板。
第一张图 :Windows 7 Normal主题,Panel的ParentBackground = True:
第二张图 :Windows 7 Classic主题,PanelB的ParentBackground = True:
为什么“ParentBackground”属性在Windows Classic主题中不起作用? 我该如何解决这个问题?
i use a toolbar and a panel on my form .
First picture : Windows 7 Normal theme , ParentBackground for Panel = True :
Second picture : Windows 7 Classic theme , ParentBackground for Panel = True :
Why "ParentBackground" property doesn't work at Windows Classic theme ? and how can i solve this problem ?
最满意答案
ParentBackground专门用于主题。 如果您没有启用主题,那么它什么都不做。 帮助说:
确定控件是否使用父级的主题背景。
如果ParentBackground为true,则控件使用父级的主题背景绘制自己的背景。 除非启用XP主题,否则ParentBackground无效。
你正在寻找ParentColor 。
A better idea : Using Gradient Panel . i resize it and match it within Toolbar :D
[Thank you all]
更多推荐
发布评论