如何在 PocketPC 上按 X 关闭

发布于 2024-08-25 00:56:04 字数 223 浏览 4 评论 0原文

在 PocketPC 上,当您点击 (X)“关闭”应用程序时,它会在后台保持打开状态。关闭它的唯一方法(无需第三方程序)是进入设置->内存并关闭程序。或者您可以运行其他程序,这样当 PPC 没有内存时,它将关闭较早的程序。

我正在开发一个 PPC 应用程序,我想知道当用户点击右上角的 (X) 按钮时是否有一种优雅的方式来实际关闭应用程序。有为此举办的活动吗?

(使用.NET CF 3.5)

On PocketPC, when you tap the (X) to "close" the application, it stays open in the background. The only way to close it (without third-party programs) is to go to the settings->memory and close the program. Or you can run other programs so when the PPC gets to no memory it will close the earlier programs.

I am developing an application for PPC and I was wondering if there is an elegant way to actually CLOSE the application when user taps the (X) button in the top-right corner. Is there an event raised for this?

(Using .NET CF 3.5)

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

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

发布评论

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

评论(2

旧时光的容颜 2024-09-01 00:56:04

在 PocketPC Form 上,X 是最小化按钮。另一方面,关闭按钮是“确定”按钮。
要显示“确定”按钮,可以将 MinimizeBox 属性设置为“False”。

On a PocketPC Form, the X is a minimize button. The close button, on the other hand is an 'OK' button.
To get the OK button to display, you can set the MinimizeBox property to 'False'.

倒带 2024-09-01 00:56:04

这将是一个丑陋的黑客行为,袖珍电脑应用程序因当您单击“X”时实际上没有退出而臭名昭著,就像在桌面 Windows 电脑上所做的那样,在袖珍 PC 领域,它会将其发送到后台,正如您发现的那样......这可以在收到“Form_Close”事件或“Application_Exit”事件处理程序后完成...

System.Diagnostics.Process.GetCurrentProcess().Kill();

This will be an ugly hack, pocket pc applications are notorious for not actually exiting when you click on 'X' as done on the desktop Windows pc, in Pocket PC land, it sends it to the background as you have discovered...this can be done either upon receiving a 'Form_Close' event or an 'Application_Exit' event handler...

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