在窗口表单应用程序中使用两种表单的未知错误 [英] unknown error wen using two forms in window form application

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

问题描述

Error	1	Unable to copy file "obj\x86\Debug\voy_wfa1.exe" to "bin\Debug\voy_wfa1.exe". The process cannot access the file 'bin\Debug\voy_wfa1.exe' because it is being used by another process.	voy_wfa1




好的,我收到此错误,并尝试过找到一个解决方案,但没有找到摆脱我的机率的解决方案.
好的,我创建两个表单,然后将值添加到一个表单中并存储在其中,然后我要关闭当前表单并打开一个带有按钮单击的表单,单击后单击该按钮将显示带有数据的数据网格视图.


我用了:




ok im getting this error and have tried to find a soln before but not a soln that getting rid of my prob.
ok wen i create two forms i add values into one and store in in the after that i want to close the current form and open a form which has a button click which on click displays a data grid view with the data


i used the :

this.Close();
Form2 obj = new Form2();
obj.Show();



但是在构建即时消息时遇到了上面提到的错误.任何解决方案我是.net世界的新手.
感谢您的帮助.



but on building im getting the error mentioned above. any solution pls. Im a newbie to the .net world.
Thanks for ur help.

推荐答案

您可能没有正确终止应用程序,使表单实例保持活动状态,这意味着过程不会结束.

在任务管理器中查看->流程.您完全可以在列表中看到voy_wfa1进程吗?如果是这样,请单击它并单击结束进程",然后尝试重新构建.
You''re probably not terminating your application correctly, leaving form instances alive which means the process won''t end.

Have a look in Task Manager -> Processes. Can you see process voy_wfa1 in the list at all? If so, click on it and ''End Process'', then try rebuilding.


尝试清洗溶液,然后重新构建.如果打开了一个窗口并尝试再次运行该应用程序,则可能会发生此错误.

希望对您有所帮助:)
Try cleaning the solution, then rebuild it. This error might occur if you have a window opened and trying to run the application again.

Hope it helps :)


这篇关于在窗口表单应用程序中使用两种表单的未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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