Hello Armin,
I would recommend always resetting the cursor shape to its default value
manually, preferrably in a finally block to ensure that the cursor is reset
to Default even when an exception is raised.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua Deliver reliable .NET software
[quoted text, click to view] "Armin Zingler" <az.nospam@freenet.de> wrote in message
news:3f33ad46$0$30083$9b622d9e@news.freenet.de...
> Hello,
>
> is it right that the cursor is *always* set back to it's default when the
> application is idle?
>
> cursor.current = cursors.waitcursor
> 'code taking some seconds
> 'after that the application is idle
>
>
> Do I have to write
> cursor.current = cursors.default
> after the code above? Or even
>
> dim c as cursor
> c = cursor.current
> cursor.current = cursors.waitcursor
> 'code taking some seconds
> cursor.current = c
>
> ?
>
> Thanks in advance
>
>
> --
> Armin
>