Windows Mobile上拦截最小化事件(紧凑框架)

发布于 2024-08-27 23:54:51 字数 116 浏览 4 评论 0原文

我想在 C# 中拦截 Windows Mobile 6.1 应用程序的最小化/最大化事件。有没有一种简单的方法可以实现这一目标。 (一段代码作为例子就很好了)。 我需要知道用户何时使用我的应用程序或应用程序在后台运行。

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 be great).
I need to know when the user plays with my application or the application runs in background.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事与诗 2024-09-03 23:54:52

没有任何测试,我会说:看一下 Form.Activated 和 Form.Deactivated 事件:

来自 C# 文档:

  • Form.Deactivate 事件:当表单失去焦点并且不再是活动表单时发生。
  • Form.Activate 事件:当表单在代码中或由用户激活时发生。

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文