all groups > dotnet windows forms > august 2003 >
You're in the

dotnet windows forms

group:

Cursor.Current


Cursor.Current Armin Zingler
8/8/2003 4:01:12 PM
dotnet windows forms:
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
Re: Cursor.Current Dmitriy Lapshin [C# / .NET MVP]
8/8/2003 5:29:50 PM
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]
AddThis Social Bookmark Button