展开全部
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Left = this.Width;
label1.Top = this.Height;
}
private void timer1_Tick(object sender, EventArgs e)
{
if (label1.Left <-label1.Width)
{
label1.Left = this.Width;
label1.Top = this.Height;
}
else
{
label1.Left = label1.Left - 10;
label1.Top = label1.Top - 10*this.height/this.width;
}
}
{
timer1.Enabled = true;
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Left = this.Width;
label1.Top = this.Height;
}
private void timer1_Tick(object sender, EventArgs e)
{
if (label1.Left <-label1.Width)
{
label1.Left = this.Width;
label1.Top = this.Height;
}
else
{
label1.Left = label1.Left - 10;
label1.Top = label1.Top - 10*this.height/this.width;
}
}
追问
谢谢了哦~但怎么都是红色呢?可以上传附件吗?谢谢
追答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询