开发者

Intercept minimize event on windows mobile (compact framework)

开发者 https://www.devze.com 2022-12-25 11:05 出处:网络
I want to intercept minimize/maximize events for a windows mobile 6.1 application in c#. Is there a simple way to achieve this. (A piece of code as an example would b开发者_运维技巧e great).

I want to intercept minimize/maximize events for a windows mobile 6.1 application in c#. Is there a simple way to achieve this. (A piece of code as an example would b开发者_运维技巧e great). I need to know when the user plays with my application or the application runs in background.


Without any testing I'd say: take a look at the Form.Activated and Form.Deactivated events:

From the C# Documentation:

  • Form.Deactivate Event : Occurs when the form loses focus and is no longer the active form.
  • Form.Activate Event: Occurs when the form is activated in code or by the user.
0

精彩评论

暂无评论...
验证码 换一张
取 消