我可以使用for循环让图片框中的图片上下移动,这就是我的代码。
private void xAnimeTimer_Tick(object sender, EventArgs e)
{
int count;
this.xAnimeTimer.Stop();
// start point end point speed
for (count = 0; count <= 1350; count+=2)
{
this.xAnimePictureBox.Left = count;
}
for (count = 0; count <= 810; count += 2)
{
this.xAnimePictureBox.Top = count;
}我想不出怎么让图片上下移动,我只能让它左右移动。
发布于 2011-05-31 10:26:51
反转您已有的内容:
this.xAnimeTimer.Stop();
// start point end point speed
for (count = 1350; count >= 0; count-=2)
{
this.xAnimePictureBox.Left = count;
}
for (count = 810; count >= 0; count -= 2)
{
this.xAnimePictureBox.Top = count;
}https://stackoverflow.com/questions/6182394
复制相似问题