在C#4.0中,Windows应用程序设计未显示,而是显示错误 [英] In C# 4.0 Windows Application Design is not showing, instead it shows an error

查看:58
本文介绍了在C#4.0中,Windows应用程序设计未显示,而是显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Windows应用程序中,我创建了一个项目,但现在没有显示设计页面,当我打开该表单时,它显示我.cs页面上的错误如何解决该问题

解决方案

如果不在机器前面这很难修复!

发生的事情是你的表单构造函数有一个错误并且它抛出一个异常:VS捕获它,并为你显示警告页面而不是设计视图,因为它无法构造一个实例表格是否正确。



错误是什么以及导致错误的原因是什么?这取决于你。如果我可以;显示此表单错误页面信息无法帮助您准确找出问题所在(并且它通常会给您提供异常详细信息)那么可能有帮助的是在调试器中运行代码并查找那里有任何例外 - 修复它们,你的表格应该重新出现。



但是我们不能为你做到这一点! :笑:

In my windows application i created a project but now there is not showing the design page it shows me error on .cs page when I open that form how can I solve that issue

解决方案

This is extremely difficult to fix without being in front of the machine!
What's happened is that your form constructor has an error and it throwing an exception: VS catches that, and displays the warning page for you instead of the design view, because it can't construct an instance of the form correctly.

What the error is and what causes it? That's down to you. If the "I can;t show this form" error page information doesn't help you pinpoint exactly where the problem is (and it generally does give you the exception detail) then what may help is running your code in the debugger and looking for any exceptions there - fix them, and your form should reappear.

But we can't do that for you! :laugh:


这篇关于在C#4.0中,Windows应用程序设计未显示,而是显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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