窗口加载出错!谁来帮我啊!
在途中 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版,窗口所有控件变成了这些文字,错误列表窗口出现一个这个警告,
但还是可以生成及运行程序,跟以前的没两样,
要如何修改呢?头大了!