How do I find out which control has focus in .NET Windows Forms?

前端 未结 7 1179
逝去的感伤
逝去的感伤 2020-12-03 21:06

How do I find out which control has focus in Windows Forms?

相关标签:
7条回答
  • 2020-12-03 21:36

    You can use the ActiveControl propert of the form and can use that control.

    me.ActiveControl
    

    Or

    Form.ActiveControl
    
    0 讨论(0)
提交回复
热议问题