日期:2014-05-18 浏览次数:20984 次
int offset = 4; private void timer1_Tick(object sender, EventArgs e) { this.pictureBox1.Left += offset; if (this.pictureBox1.Left > 300) offset = -4; if (this.pictureBox1.Left < 0) offset = 4; }