我可以使用.NET CF未处理的异常对话框,被抓来显示和异常? [英] Can I use the .Net CF unhandled exception dialog to display and exception that was caught?

查看:169
本文介绍了我可以使用.NET CF未处理的异常对话框,被抓来显示和异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的。NET 3.5 Compact Framework的应用程序,我最近增加了一个未处理的异常处理程序。我做到了,这样我可以添加错误给我们的日志文件,并重新启动系统。在某些模式下我想要显示的错误给用户。我发现,消息框是远远不如的错误显示比对话框中的CLR会使用,如果我没赶上例外。

In my .Net 3.5 Compact Framework app I recently added an unhandled exception handler. I did it just so I could add the error to our log file and reboot the system. In certain modes I want to display the error to the user. I find that the messagebox is far inferior for error display than the dialog the CLR would use if I didn't catch the exception.

有没有什么办法可以得到该对话框并显示给用户或者是私人和深藏在CLR?

Is there any way I can get to that dialog and show it to the user or is it private and hidden deep in the CLR?

推荐答案

我们写我们自己的对话框对于这种情况。用户可以展开隐藏文本框与附加信息,诸如栈跟踪等

We wrote our own dialog for this case. The user can expand a hidden TextBox with additional information such as the StackTrace etc.

在我看来外的开箱上的WindowsCE和Windows Mobile消息框是不是在大多数情况下使用。

In my opinion the out-of-the-box MessageBox on WindowsCE and Windows Mobile is not usable in most cases.

这篇关于我可以使用.NET CF未处理的异常对话框,被抓来显示和异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆