"protracker.form1"并不包含对"columnheader2"的定义
突破C#五十讲的第五讲出现的问题
//问题1:D:\过往程序\protracker\protracker\Form1.cs(182): “protracker.Form1”并不包含对“columnheader1”的定义
//问题2:D:\过往程序\protracker\protracker\Form1.cs(181): “protracker.Form1”并不包含对“Listview1_KeyDown”的定义
----------------------------
public void InitializeListview()
{
this.Listview1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[]
{
this.columnHeader1,//问题1:D:\过往程序\protracker\protracker\Form1.cs(182): “protracker.Form1”并不包含对“columnheader1”的定义
this.columnHeader2,
this.columnHeader3,
this.columnHeader4,
this.columnHeader5,
this.columnHeader6
});
this.Listview1.ForeColor=System.Drawing.SystemColors.WindowText;
this.Listview1.FullRowSelect=true;
this.Listview1.GridLines=true;
this.Listview1.Location=new System.Drawing.Point(10,19);
this.Listview1.Name="Listview1";
this.Listview1.Size=new System.Drawing.Size(615,277);
this.Listview1.Sorting=System.Windows.Forms.SortOrder.Ascending;
this.Listview1.TabIndex=0;
this.Listview1.TabStop=false;
this.Listview1.View=System.Windows.Forms.View.Details;
this.Listview1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Listview1_KeyDown);//问题2:D:\过往程序\protracker\protracker\Form1.cs(181): “protracker.Form1”并不包含对“Listview1_KeyDown”的定义
this.columnheader1.text="映象名称";
this.columnheader2.text="PID";
this.columnheader3.text="CPU";
this.columnheader4.text="优先级";
this.columnheader5.text="内存使用";
this.columnheader6.text="虚拟内存";
try
{
proclist=Process.GetProcesses();
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
问题点数:0、回复次数:1Top
1 楼gauss32(不识君)回复于 2004-08-02 09:19:46 得分 0
自己顶Top




