Windows启动修复工具后C#项目被破坏(查看详情) [英] C# Project ruined after Windows Startup Repair Tool (See details)

查看:74
本文介绍了Windows启动修复工具后C#项目被破坏(查看详情)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中创建了一个C#应用程序,几天前,我不小心断开了计算机的电源,当我再次打开它时,显示了启动修复窗口,它完成了它的工作但是当我刚刚工作时再次打开我的c#项目并进行构建,app.config文件,调试文件以及主.exe和vshost.exe被删除。



所以我开始重新制作项目(将破坏的项目代码复制到我的新项目中,包括组件)但有些东西不起作用,例如ContextMenuStrips(他们显示但他们的toolStripItems没有做任何事情),MenuStrips(和CTXMENU一样)等等。



我的问题是:出了什么问题?我有所有正确的命名空间,代码没有显示任何错误。有谁可以帮助我吗?



在此先感谢 - CCB

I've made a C# application in Visual Studio 2013, some days ago, I accidentally desconnected the power of my computer, when I turned on it again, the Startup Repair window was shown, it did its work but when I just opened my c# project again and made a build, the app.config file, debugging file and the main .exe's and vshost.exe were removed.

So I started to make my project again(copying the ruined project's code to my new project, including the components) but some things do not work, such as ContextMenuStrips(they show but their toolStripItems are not doing anything), MenuStrips(same as CTXMENU), etc.

My question is: What is going wrong? I have all the correct Namespaces, the code isn't showing any error. Can someone help me please?

Thanks in Advance - CCB

推荐答案

事件处理程序可能不再受限于您的控件。



选择任何工具条项目,然后在属性面板中单击事件按钮:在那里您将看到哪个处理程序受控制事件的影响。例如,如果Click事件没有显示,那么你必须重新影响处理事件的方法。



我希望我已经足够精确了。如果我没有,请告诉我。
It's likely that event handlers are not bound anymore to your controls.

Select any toolstrip item, and in the properties panel, click on the event button : there you will see which handler is affected to events for the control. If, for example, for the Click event, there is nothing shown, then you have to reaffect the method handling the event.

I hope I've been precise enough. Let me know if I didn't.


这篇关于Windows启动修复工具后C#项目被破坏(查看详情)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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