Answered by:
Start WM6 busy animation

Question
-
Is there a way to call the WM busy animation from my program? The icon I am referring to would be the square image with an animated, 4 colored circle in the middle. For instance when I start my app it spins. When I perform an action in my program I know is going to take more than 5 seconds I would like to call that animation to run. How would this be done?
Wednesday, September 10, 2008 1:19 PM
Answers
-
cursor.current = cursors.waitcursor
Wednesday, September 10, 2008 9:29 PM
All replies
-
cursor.current = cursors.waitcursor
Wednesday, September 10, 2008 9:29 PM -
That's it? Nothing else? How would I cancel it then?Thursday, September 11, 2008 1:56 PM
-
Answered my own question by playing around with it.
Cursor.Current = Cursors.Default
Any way to create a custom cursor that you know of?
Thursday, September 11, 2008 2:19 PM -
Hi,
FroggEye wrote: Any way to create a custom cursor that you know of? Yes this is possible. For example take a look at a blog post of mine titled "Creating custom animated waited cursors" (available at http://www.christec.co.nz/blog/archives/320).
The key is using Platform Invoke functionality to access a native API called LoadAnimatedCursor (documented on MSDN at http://msdn.microsoft.com/en-us/library/aa921602.aspx).
It is however quite messy to use this API from a .NET application. Another alternative worth looking into is to create a small user control that you can dynamically hide/show as required.
Hope this helps,
Christopher Fairbairn
Friday, September 12, 2008 6:01 AM -
Christopher - thanks for the blog post!
Friday, September 12, 2008 1:29 PM