首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

窗口加载出错!哪位高手来帮小弟我啊

2012-01-05 
窗口加载出错!谁来帮我啊!一个程序写得好好的,忽然在打开主窗口想进行修改编辑时,出现这个问题:----------

窗口加载出错!谁来帮我啊!
一个程序写得好好的,忽然在打开主窗口想进行修改编辑时,出现这个问题:
'--------------------------------------------------
加载设计器时遇到一个或多个错误。这些错误在下面列出。一些错误可通过重新生成项目来修复,而另一些错误则需要更改代码。  

重复的组件名称“编号DataGridViewTextBoxColumn”。组件名称必须唯一且不区分大小写。  
隐藏          

在   System.ComponentModel.Container.ValidateName(IComponent   component,   String   name)
在   System.ComponentModel.Container.Add(IComponent   component,   String   name)
在   System.ComponentModel.Design.DesignerHost.Add(IComponent   component,   String   name)
在   System.Windows.Forms.Design.DataGridViewDesigner.RefreshColumnCollection()
在   System.Windows.Forms.Design.DataGridViewDesigner.dataGridViewChanged(Object   sender,   EventArgs   e)
在   System.Windows.Forms.Control.OnBindingContextChanged(EventArgs   e)
在   System.Windows.Forms.DataGridView.OnBindingContextChanged(EventArgs   e)
在   System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs   e)
在   System.Windows.Forms.Control.OnBindingContextChanged(EventArgs   e)
在   System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs   e)
在   System.Windows.Forms.Control.OnBindingContextChanged(EventArgs   e)
在   System.Windows.Forms.ContainerControl.OnCreateControl()
在   System.Windows.Forms.Control.CreateControl(Boolean   fIgnoreVisible)
在   System.Windows.Forms.Control.CreateControl()
在   System.Windows.Forms.Control.ControlCollection.Add(Control   value)
在   System.Windows.Forms.Form.ControlCollection.Add(Control   value)
在   System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control   c)  
'---------------------------------------------------

VS2005版,窗口所有控件变成了这些文字,错误列表窗口出现一个这个警告,
但还是可以生成及运行程序,跟以前的没两样,

要如何修改呢?头大了!


[解决办法]
使用文本的编辑器,修改一下吧——出错后,应该提示“编辑”的(vs2005是这样的)。

重复的组件名称“编号DataGridViewTextBoxColumn”。组件名称必须唯一且不区分大小写。
隐藏



[解决办法]
。NET老是出这个问题的,有时候真的好气。一般是由于一些第三方控件造成的。用C#本身的控件也会有的。我一般是切换到代码上全COPY出来,然后新建一个FORM,把代码PASTE过去.

热点排行