(特别申明:1、如若转载请标明出处http://blog.csdn.net/gufengcangying。
2、 如若雷同,算我抄你!)
在文章(一)的基础上面添加按钮控件,并设置其相应的属性。
如下Form1.Designer.cs中显示其属性:
//
// memory
//
this.memory.Location = new System.Drawing.Point(37, 246);
this.memory.Name = "memory";
this.memory.Size = new System.Drawing.Size(75, 23);
this.memory.TabIndex = 4;
this.memory.Text = "内存法";
this.memory.UseVisualStyleBackColor = true;
this.memory.Visible =true;
this.memory.Click += new System.EventHandler(this.memory_Click);
单击该按钮,添加如下代码:
/// <summary>