应用程序失败并获得关注的.NET事件

sub*_*ma6 3 .net focus winforms

有没有一种简单的方法来检测.NET应用程序何时获得或失去焦点?

Jer*_*emy 7

您正在寻找的事件是Form.ActivatedForm.Deactivated