窗口加载出错!谁来帮我啊!

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

重复的组件名称“编号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版,窗口所有控件变成了这些文字,错误列表窗口出现一个这个警告,
但还是可以生成及运行程序,跟以前的没两样,

要如何修改呢?头大了!
...全文
268 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
在途中 2007-02-11
  • 打赏
  • 举报
回复
再问,是重建项目再粘贴过去,还是在本项目内新建一个窗口粘贴过去,

(因为我出现错误的是在程序的主窗口上,删了主窗口再建新窗口可能还要处理一些事,所以这样问了)

先谢了!
JavaK 2007-02-10
  • 打赏
  • 举报
回复
。NET老是出这个问题的,有时候真的好气。一般是由于一些第三方控件造成的。用C#本身的控件也会有的。我一般是切换到代码上全COPY出来,然后新建一个FORM,把代码PASTE过去.
cangwu_lee 2007-02-10
  • 打赏
  • 举报
回复
使用文本的编辑器,修改一下吧——出错后,应该提示“编辑”的(vs2005是这样的)。

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


16,555

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧