如何禁用按钮上的黑色虚线焦点 [英] how to disable black dotted focus on a button
本文介绍了如何禁用按钮上的黑色虚线焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的windows appilcation中放置了一些按钮。当我们点击按钮时,按钮周围会出现黑色虚线矩形边框。我可以在点击按钮时禁用黑色虚线焦点或聚焦
Hi in my windows appilcation iam placing some buttons .when we click on the button a black dotted rectangle boarder is appearing around the button.how I can disable the black dotted focus when button is clicked or focus
推荐答案
尽管我讨厌这样做(给你一个指向另一个站点的链接),你需要对按钮控件进行子类化。请参阅 http://stackoverflow.com/questions / 1700534 / c-sharp-winform-remove-or-customize-the-focus-rectangle-for-buttons [ ^ ],讨论如何做到这一点。
As much as I hate to do this (give you a link to another site), you would need to sub class the button control. See http://stackoverflow.com/questions/1700534/c-sharp-winform-remove-or-customize-the-focus-rectangle-for-buttons[^] for a discussion on how to do that.
这篇关于如何禁用按钮上的黑色虚线焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文