The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

304535 (1) [Avatar] Offline
#1
Fixed file.
[ 2 KB ]
Hey guys, great book.

Just going to post 1 fix to C# code in the Animation APP, ignore if it's already fixed i downloaded the source some time ago.

Into the main:
try { RunAnimation(); } catch { }
// This while is redundanct, program not exiting.
//while (af.Visible) Application.DoEvents();

Now into the ShowAndWait, my suggestion to no fry the processor:
After: Application.DoEvents();
Include: System.Threading.Thread.Sleep(10);

And you can slow down your animation using larger intervals.

I'll attach the file anyway.