ShowDialog animation

L

L Martinsson

Hello,
When I show a dialog on my CE device using ShowDialog the showing
process is animated. It starts with a rectangle in the middle of the
screen and the rectangle is growing and moving to its final position
and size for the dialog. The closing process is also animated.
Does anyone know how to turn this animation effect off?
Thanks / Lars
 
A

Arun

Hi,
Are you referring to WaitCursor.
Check the sample in your machine, usually installed in
C:\Program Files\Microsoft Visual
Studio.NET\CompactFrameworkSDK\v1.0.3300\Samples\PocketPC\VC#\WaitCursor

To start the animation
Cursor.Current = Cursors.WaitCursor
To Stop use this
Cursor.Current = Cursors.Default
If you are implementing with try catch, include Cursor.Current =
Cursors.Default in finally.

Hope this helps,
Cheers,
Arun.
www.innasite.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top