winform中button点击后再点击其他控件致使button失去焦点,此时button出现黑色边线,去掉黑色边线的方法

button的FlatAppearence属性下,设置BorderSize=0

另外BorderColor、MouseDownBackColor、MouseOverBackColor设置为想要的值

设置鼠标悬浮和离开时的背景色统一,就实现了。

 

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2022-02-20
  • 2021-08-21
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
相关资源
相似解决方案