<分区>
Possible Duplicate:
How to set/change/remove focus style on a Button in C#?
有没有办法在按下/被按下/处于事件状态时移除蓝色轮廓?
截图如下:
有什么办法可以隐藏吗?我正在使用 C# 和 winforms。
<分区>
Possible Duplicate:
How to set/change/remove focus style on a Button in C#?
有没有办法在按下/被按下/处于事件状态时移除蓝色轮廓?
截图如下:
有什么办法可以隐藏吗?我正在使用 C# 和 winforms。
最佳答案
合并重复问题的答案
public class NoFocusCueButton : Button
{
public NoFocusCueButton() : base()
{
InitializeComponent();
this.SetStyle(ControlStyles.Selectable, false);
}
protected override bool ShowFocusCues
{
get
{
return false;
}
}
}
关于c# - 删除按钮的蓝色轮廓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14354922/
相关文章:
c# - 如何更新 EF ObjectContext 中通用实体的属性?
c# - 即使正确发送了 SOAP 请求,Axis2 也总是收到空参数?
c# - 默认 Blazor PWA 项目无法托管到 IIS 中
c# - Reingold-Tilford 算法的步骤是什么?我应该如何对其进行编程?
java.lang.ClassCastException : java. lang.String 无法转换为 java.util.Vector
c# - Mongo 'find' 方法不适用于 DateTime.MinValue