如何重置我的 C# 程序?
我希望我的程序能重新开始
在 Windows 手机中
提前致谢
最佳答案
One way is to P/Invoke (or use an existing wrapper) around the CeRunAppAtTime API, schedule your app to launch in a couple of seconds time, and exit. The SDF (www.opennetcf.org/sdf/) has a wrapper for this API.
Peter
-- Peter Foot Device Application Development MVP www.peterfoot.net | www.inthehand.com
来自互联网文件馆 ( http://web.archive.org/web/20071231144636/http://www.themssforum.com/Compact/application-restart/ )。 (我放弃了弄清楚为什么 url 解析器讨厌那个链接)
参见 CeRunAppAtTime在 MSDN 上。
与 Zanoni 的解决方案不同,这不会同时运行您的应用程序的两个实例。不过,它更丑陋。
关于c# - 如何重置我的 C# 程序(Windows 移动版)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1039697/