How do you return the focus to the last used control after clicking a button in a winform app?

后端 未结 7 1211
忘掉有多难
忘掉有多难 2021-01-02 23:23

I\'m working on a windows forms application (C#) where a user is entering data in a form. At any point while editing the data in the form the user can click one of the butt

相关标签:
7条回答
  • 2021-01-02 23:57

    You could do the following

    Change the button to a label and make it look like a button. The label will never get focus and you don't have to do all the extra coding.

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