Implement animation in C# Windows Forms app

Last post 10-09-2008 5:05 PM by svickn. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-23-2008 9:31 PM

    • Nicolai
    • Top 25 Contributor
    • Joined on 12-03-2007
    • Wannabe Slacker
    • Points 574

    Implement animation in C# Windows Forms app

    Hello,


    I have a Windows forms application where I need to use animation for threads. I want to use a thread to show a ball moving across the screen. This thread will compute the new position of the ball, asks the system to repaint the screen showing the ball in the new position, and sleeps for a fraction of a second so I can see the ball moving at human speed. Any idea about this?

    Please help. 

    Nicolai
    Follow MS and develop better Software
    Filed under: , ,
  •  Advertisement

    3 MONTHS FREE & FREE SETUP on ASP.NET 3.5/2.0 Web Hosting! Windows 2008 & 2003 Servers Available, MS SQL 2008/2005, .NET 3.5 SP1, Entity Framework, LINQ, Silverlight 2.0, 30 Day Money Back Guarantee – Click Here!

     
  • 10-09-2008 5:05 PM In reply to

    • svickn
    • Top 150 Contributor
    • Joined on 10-09-2008
    • Baton Rouge, LA
    • Wannabe Slacker
    • Points 55

    Re: Implement animation in C# Windows Forms app

     Nicolai,

    What specifically are you having trouble with? For an "easy" way to do this, you could always use a timer and have the tick event modify your ball location and repaint.

    Stacy Vicknair
    http://www.wtfnext.com
    Filed under:
Page 1 of 1 (2 items)