Windows窗体应用程序中的错误 [英] Error in windows form application

查看:86
本文介绍了Windows窗体应用程序中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我尝试调试时,在VS 2010中遇到了一条新的错误消息(至少对我来说).如果有人可以帮助解决它,我将不胜感激…….它说:

Hi folks,

I''ve come across a new error message (For me at least) in VS 2010 when I try to debug. If anyone could help solve it I''d appreciate it.......It says:

报价:

错误1在资源"参数中多次指定了项目"obj \ x86 \ Debug \ WindowsFormsApplication2.frmMain.resources" . 资源"参数不支持重复项. WindowsFormsApplication

Error 1 The item "obj\x86\Debug\WindowsFormsApplication2.frmMain.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. WindowsFormsApplication

推荐答案

似乎您已两次添加frmmain Form,这就是为什么会出错的原因

备份现有项目后,请执行以下操作

从最新解决方案中删除frmmain表单(并保存在某处)
重新编译项目
保存解决方案
重新启动解决方案
添加frmmain表单
重新编译


再次执行此操作之前先备份

希望这能解决问题
It seems that you have added frmmain Form twice thats why it is giving error

Do following thin after taking backup of your existing project

Remove the frmmain form from recent solution (and save somewhere)
Recompile the project
Save the solution
Restart the solution
Add the frmmain form
Recompile


Again Take backup before doing this

Hope this will solve prob


尝试一下,
对.cs和.designer.cs文件都进行备份,这会导致错误,然后从项目中删除该文件.并重建解决方案,然后将.cs和.designer.cs文件添加到解决方案中,然后再次重建该解决方案.
Try This,
Take a backup of the both .cs and .designer.cs files, which is giving the error and then delete that file from the project. And rebuild the solution and then add add both .cs and .designer.cs files to solution and again rebuild the solution back.


这篇关于Windows窗体应用程序中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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