By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,992 Members | 1,344 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,992 IT Pros & Developers. It's quick & easy.

Mouse Pointer turns to hour glass

P: n/a
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
May 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
May 14 '06 #2

P: n/a
Marcus Andrén <a@b.c> wrote:
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.


No, don't tell them how to figure things out - you'll put us out of
work!

-- Barry
May 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.