改变地铁ui vb中按钮的颜色

问题描述 投票:-1回答:1

我正在使用带有metro ui的visual studio-2012开发一个Windows窗体应用程序。 但是,问题是对地铁ui控制的低定制支持。 如何在地铁ui中更改按钮的背景颜色。 没有在按钮的属性窗口中找到的属性,我尝试了btn_save.BackColor = Color.Red,但它不起作用。 enter image description here

enter image description here

vb.net
1个回答
0
投票

这应该是因为默认情况下btn_save.UseCustomBackColor会为False。在调用btn_save.UseCustomBackColor = True之前添加btn_save.BackColor = Color.Red并查看它是否解决了问题。

© www.soinside.com 2019 - 2024. All rights reserved.