求用winfrom实现的类似豌豆荚通讯录的列表.该怎么解决
求用winfrom实现的类似豌豆荚通讯录的列表...急!!!
如题
各位大侠,小弟新手,想豌豆荚通讯录列表的要怎么实现啊。
我用winfrom的用户控件做了个,但是效率太差了。
求帮助
------解决方案--------------------
你用哪个控件?ListView效率还是非常高的
------解决方案--------------------
两个方案,第一个是修改listview,搜索后就能知道。
第二个比较麻烦但是简单,就是在panel中动态添加你需要的项目组合。
如题
各位大侠,小弟新手,想豌豆荚通讯录列表的要怎么实现啊。
我用winfrom的用户控件做了个,但是效率太差了。
求帮助
------解决方案--------------------
你用哪个控件?ListView效率还是非常高的
------解决方案--------------------
两个方案,第一个是修改listview,搜索后就能知道。
第二个比较麻烦但是简单,就是在panel中动态添加你需要的项目组合。
- C# code
namespace WindowsFormsApplication2 { partial class Form1 { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // panel1 // this.panel1.Location = new System.Drawing.Point(12, 12); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(260, 205); this.panel1.TabIndex = 0; // // button1 // this.button1.Location = new System.Drawing.Point(197, 223); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 1; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(284, 261); this.Controls.Add(this.button1); this.Controls.Add(this.panel1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button button1; } }