错误 2 无法将类型“string”隐式转换为“System.Windows.Forms.ColumnHeader” E:\MySchool\MySchool\SearchStudentForm.Designer.cs 191 25 MySchool
以上是错误提示
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(797, 426);
this.Controls.Add(this.listView1);
this.Controls.Add(this.txtSearch);
this.Controls.Add(btnSearch);
this.Controls.Add(this.label1);
this.Controls.Add(this.cboSearch);
this.Name = "SearchStudentForm"; 错误标记的地方
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "查找学员用户";
this.ResumeLayout(false);
this.PerformLayout();
以上是错误提示
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(797, 426);
this.Controls.Add(this.listView1);
this.Controls.Add(this.txtSearch);
this.Controls.Add(btnSearch);
this.Controls.Add(this.label1);
this.Controls.Add(this.cboSearch);
this.Name = "SearchStudentForm"; 错误标记的地方
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "查找学员用户";
this.ResumeLayout(false);
this.PerformLayout();
程序报错ColumnHeader是ListView的一个列头属性类,似乎有点怪,贴全部源码看看。
贴完整代码
listView??用户控件??。this永远都是当前对象。
错误 2 无法将类型“string”隐式转换为“System.Windows.Forms.ColumnHeader”那么应该有个地方是ColumnHeader才对