Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MousePointer in C#

Status
Not open for further replies.

Pipe2Path

Programmer
Aug 28, 2001
60
How do I change the mousepointer to an hourglass
in C#? Do I have to use the MouseEnter and MouseLeave
events, or is there an easier way?

Thanks.
 
Solution 1:

Cursor.Current = Cursors.WaitCursor;

// processes
Cursor.Current = Cursors.Default;

Solution 2:
-add a custom cursor to your project using the Designer , MywaitCursor.Cur
myForm.Cursor = new Cursor(GetType(), "MywaitCursor.Cur"); // case sensitive!!!

// processes
Cursor.Current = Cursors.Default;

-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top