Mouse Pointer turns to hour glass

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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
 

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

Back
Top