DigiMarco
DigiMarco

Reputation: 97

C# detect when form becomes unfocused?

Is there a winforms event that fires when the user switches from a form to another window? I.e. Not through minimizing, but just by clicking on another window. How can I detect when the form becomes inactive? Thanks!

Upvotes: 1

Views: 1440

Answers (1)

Roger Johansson
Roger Johansson

Reputation: 23224

Form.Deactivate

Upvotes: 6

Related Questions