1个回答
展开全部
//控制标签位置的变量
int i = 0;
//Timer的动作
private void timer1_Tick(object sender, EventArgs e)
{
i+=25;
//new一个新标签
this.label1 = new System.Windows.Forms.Label();
//设置标签位置
this.label1.Location = new System.Drawing.Point(50, i);
this.label1.Name = "label1";
this.label1.Text = "label1";
//窗体内容面板加载标签
this.Controls.Add(this.label1);
}
int i = 0;
//Timer的动作
private void timer1_Tick(object sender, EventArgs e)
{
i+=25;
//new一个新标签
this.label1 = new System.Windows.Forms.Label();
//设置标签位置
this.label1.Location = new System.Drawing.Point(50, i);
this.label1.Name = "label1";
this.label1.Text = "label1";
//窗体内容面板加载标签
this.Controls.Add(this.label1);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询