VB.NET 2005问题,Designer无法处理代码行 [英] VB.NET 2005 problems with Designer not being able to process a code line

查看:298
本文介绍了VB.NET 2005问题,Designer无法处理代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中有一个问题与.designer,因为每个人都知道是自动生成,我ahvent改变了。有一天我工作得很好,我做了一个备份和第二天繁荣!项目突然停止工作,并发送一条消息,设计师不能处理一个代码行...和由于这个我得到更多的错误(我的情况下,2),我甚至有一个备份从它工作的那天,是无用的我也得到了同样的错误,我试着在我的笔记本电脑和同样的问题来了。如何删除FitTrack?令人难以置信的部分是,虽然我在笔记本电脑上的错误在桌面上的错过了我的眼睛,一秒和一秒后的另一个(但仍有从设计师的警告,看不到形式),我关闭并打开它一次又一次我有错误...

I have a problem in my project with the .designer which as everyone know is autogenerated and I ahvent changed at all. One day I was working fine, I did a back up and next day boom! the project suddenly stops working and sends a message that the designer cant procees a code line... and due to this I get more errores (2 in my case), I even had a back up from the day it was working and is useless too, I get the same error, I tryed in my laptop and the same problem comes. How can I delete the "FitTrack"? The incredible part is that while I was trying on the laptop the errors on the desktop were gone in front of my eyes, one and one second later the other one (but still have the warning from the designer and cant see the form), I closed and open it again and again I have the errors...

错误是:

警告1设计人员无法在第27行处理代码:

Warning 1 The designer cannot process the code at line 27:

Me.CrystalReportViewer1.ReportSource = Me.CrystalReport11

Me.CrystalReportViewer1.ReportSource = Me.CrystalReport11

方法InitializeComponent中的代码由设计器生成,不应手动修改。请删除所有更改,然后重新打开设计器。 C:\Documents和Settings \Alan Cardero \Desktop \Reportes Liquidacion \Reportes Liquidacion \Reportes Liquidacion\Form1.Designer.vb 28 0

The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again. C:\Documents and Settings\Alan Cardero\Desktop\Reportes Liquidacion\Reportes Liquidacion\Reportes Liquidacion\Form1.Designer.vb 28 0

推荐答案

我会备份与它相关联的designer.cs文件(就像将其复制到桌面),然后编辑designer.cs文件并删除违规的行(跟踪他们做什么),然后我将尝试通过该表单的设计模式重做这些行。

I would back up the designer.cs file associated with it (like copy it to the desktop), then edit the designer.cs file and remove the offending lines (keeping track of what they do) and then I'd try to redo those lines via the design mode of that form.

这篇关于VB.NET 2005问题,Designer无法处理代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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