//个PictureBox 个Timer控件 然后把下面的复制上即可
public partial class Form : Form
{
public int x = ;
public int x = ;
public int x = ;
public int x = ;
public Form()
{
InitializeComponent();
}
private void Form_Load(object sender EventArgs e)
{
thistimerEnabled = true;
thistimerEnabled = true;
thistimerEnabled = true;
thistimerEnabled = true;
}
private void timer_Tick(object sender EventArgs e)
{
pictureBoxLocation = new Point(x);
x += ;
if (x >= thisSizeWidth)
{
x = ;
}
}
private void timer_Tick(object sender EventArgs e)
{
pictureBoxLocation = new Point(x);
x += ;
if (x >= thisSizeWidth)
{
x = ;
}
}
private void timer_Tick(object sender EventArgs e)
{
pictureBoxLocation = new Point(x);
x += ;
if (x >= thisSizeWidth)
{
x = ;
}
}
private void timer_Tick(object sender EventArgs e)
{
pictureBoxLocation = new SystemDrawingPoint(x);
x += ;
if (x >= thisSizeWidth)
{
x = ;
}
}
}