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

后端 未结 7 1273
忘掉有多难
忘掉有多难 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:56

    I think what you're doing is fine. The only thing I could think of to improve it would be to store each control into a stack as they are accessed. That would give you a complete time line of what was accessed.

提交回复
热议问题