On Sun, 14 May 2006 09:39:02 -0700,
di****@newsgroup.nospam
<di****@newsgroup.nospam.donotspam> wrote:
Hello,
I have a custom dialog. When the user hits the 'Ok' button, I want my mouse
to turn into an hourglass while its performing work - and then I want it to
go back to normal afer the work is finished.
In C# and Windows projects, how I can I control the look of the mouse?
Thanks
Setting the Current property in the System.Windows.Forms.Cursor class
changes the mouse pointer.
Cursor.Current = Cursors.WaitCursor; // Turn mouse into hourglass
Cursor.Current = Cursors.Default; // Reset to normal
This answer was found by searching the .net framework groups at
groups.google.com, using the following query:
mouse hourglass group:microsoft.public.dotnet.framework.*
The group: syntax is a very nice way to restrict searches to only the
relevant groups.
--
Marcus Andrén