简体   繁体   English

Winform 平面按钮禁用外观

[英]Winform flat button disabled appearance

Problem is that my flat button with background image on it has same appearance enabled and disabled.问题是我的带有背景图像的平面按钮具有相同的启用和禁用外观。 Is there any way of changing default template of disabled buttons or i need to do it manually after disabling my button and then also when setting it back to enabled?有什么方法可以更改禁用按钮的默认模板,或者我需要在禁用按钮后手动执行此操作,然后在将其重新设置为启用时也要这样做?

No, you can't set second image which will be shown as background image of your button automatically when you disable that button, it without coding.不,您不能设置第二个图像,当您禁用该按钮时,该图像将自动显示为按钮的背景图像,无需编码。 There is no similar property.没有类似的属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM