登录框设计怎么做,测试用例及步骤分享?( 三 )


{
this.label1 = new
System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(128, 72);
this.label1.Name = “label1”;
this.label1.Size = new System.Drawing.Size(152, 40);
this.label1.TabIndex = 0;
//
// Form2
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(520, 357);
this.Controls.Add(this.label1);
this.Name = “Form2”;
this.Text = “Form2”;
this.Load += new System.EventHandler(this.Form2_Load);
this.ResumeLayout(false);
}
#endregion
[STAThread]
static void Main()
{
Application.Run(new Form2());
}
private void Form2_Load(object sender, System.EventArgs e)
{
this.SetDesktopLocation(200,180);
this.label1.Text = UserName;
}
public string getUserName
{
get
{
return UserName;
}
set
{
UserName = value;
}
}
}
}
好了,这篇文章的内容金华号就和大家分享到这里,如果大家网络推广引流创业感兴趣,可以添加