Link to home
Start Free TrialLog in
Avatar of margarit
margaritFlag for Israel

asked on

Changing cursor to wait cursor in C#

Hello,

I have one long algorithm in my code and I wanted to change the mouse cursor to wait cursor during it's implementation.
I added the following code line to place where I call the algorithm, but my cursor remained the same:
    Cursor.Current = Cursors.WaitCursor;
from the similar questions&answers in this site I understood why this happens but I dont understand how I can overcome it. (I'm new with C#).

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of margarit

ASKER

Yes, but my cursor did not change - remained the same.
Oh, I did not try this.Cursor = Cursors.WaitCursor . i will try now.
THANKS!!! it works!
Glad to see that it works :)
It works fine. Quick & Simple. Thanks a lot.