Make an animation using a loop
- by Michael Quiles
I need help making this loop to move a label move smoothly across the screen using count for the animation (its required). The labels location is currently in location 0,0 I'd like to make it go in a square right - down - left - back to its original position
how can I accomplish this ? please give me an example using my code below. Thank You in advance.
private void xAnimeTimer_Tick(object sender, EventArgs e)
{
int count;
this.xAnimTimer.Stop();
for (count = 0; count <= 100; count++)
{
this.xAnimLabel.Left = count;
}
for (count = 0; count <= 150; count++)
{
this.xAnimLabel.Top = count;
}