开发者

How to prevent stealing focus when clicking on a usercontrol? [duplicate]

开发者 https://www.devze.com 2023-02-07 10:57 出处:网络
This question already has answers here: Is there a way to make a UserControl unfocussable? (6 answers) Closed 7 years ago.
This question already has answers here: Is there a way to make a UserControl unfocussable? (6 answers) Closed 7 years ago.

I want to 开发者_运维知识库be able to click on my user control and not have it steal focus from any other control. I know when you click on a label it doesn't steal focus. How can this be done?


Try disabling your control's ControlStyles.Selectable flag.

0

精彩评论

暂无评论...
验证码 换一张
取 消