编译没问题,双击CS文件为什么不显示窗口界面

lzh646453661 2014-05-23 04:10:00
修改以前的一个程序,双击图中的main.cs文件不显示窗口界面了,显示的是
除了main.cs这个不能打开外,其他正常
请问为什么?
...全文
387 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzh646453661 2014-05-27
  • 打赏
  • 举报
回复
引用 8 楼 yixian2007 的回复:
有时候用了自定义的控件会这样的,没关系的。 后来不知道怎么就好了。
貌似真的是这样,折腾了几次,换了电脑,突然就好了,我啥也没改
yixian2007 2014-05-26
  • 打赏
  • 举报
回复
有时候用了自定义的控件会这样的,没关系的。 后来不知道怎么就好了。
lzh646453661 2014-05-23
  • 打赏
  • 举报
回复
引用 2 楼 Z65443344 的回复:
前台控件过多的时候,修改后台代码,有时会导致设计器显示不出页面 关闭后重新打开工程就正常了. 如果一直不正常,选择全部重新编译,有可能恢复正常. 如果Main.Designer.cs里有错误的语法,编译器就是无法显示的.
感觉应该是Main.Designer.cs有问题,但是编译不出来啊,界面显示这个: <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Users\hua\AppData\Local\Temp\1491A93.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.</font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Could not find type 'BreakRecord.BreakRecord'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. </span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Could not find type 'HardwareTest.HardwareTest'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. </span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div21" class="StackStyleVisible" width="100%"><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Could not find type 'ParaSet.ParaSet'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. </span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div22" class="StackStyleVisible" width="100%"><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Could not find type 'SystemMark.SystemMark'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. </span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div23" class="StackStyleVisible" width="100%"><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Could not find type 'connectControl0311.ConnectControl'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. </span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div24" class="StackStyleVisible" width="100%"></DIV></td></tr></table></div></body></html> 这么长一串我也定位不出是什么问题来
lzh646453661 2014-05-23
  • 打赏
  • 举报
回复
引用 3 楼 yixian2007 的回复:
有时候会这样抽风,关了重新开一般会好。
重启几次了还是这样,而且其他的窗口界面都没问题,感觉不是vs2005的问题
lzh646453661 2014-05-23
  • 打赏
  • 举报
回复
引用 1 楼 Z65443344 的回复:
查看一下Main.Designer.cs,看是不是有代码错误的
编译是没问题,但是上面显示这个什么errorstyle挺长的一串,也不知道什么意思
SeeYou孙悟空 2014-05-23
  • 打赏
  • 举报
回复
引用 3 楼 yixian2007 的回复:
有时候会这样抽风,关了重新开一般会好。
你好啊,你是不是上午 我发邮件 给你的那个?嘻嘻~论坛好小。。。。
yixian2007 2014-05-23
  • 打赏
  • 举报
回复
有时候会这样抽风,关了重新开一般会好。
於黾 2014-05-23
  • 打赏
  • 举报
回复
前台控件过多的时候,修改后台代码,有时会导致设计器显示不出页面 关闭后重新打开工程就正常了. 如果一直不正常,选择全部重新编译,有可能恢复正常. 如果Main.Designer.cs里有错误的语法,编译器就是无法显示的.
於黾 2014-05-23
  • 打赏
  • 举报
回复
查看一下Main.Designer.cs,看是不是有代码错误的

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧