1

I'm trying to display a Wait cursor in my application during a threaded operation.

With

 Cursor.Current

The cursor is changed for 1 frame then comes back to default, I don't know why tbh.

With

Application.UseWaitCursor

it works properly BUT the cursor is sometimes not visually updated until the mouse is moved.

So I add

 Cursor.Position = Cursor.Position;

and the job is done, but the way of doing it is kinda despicable...

How to do that in a elegant way? Thanks

Amarnath Balasubramanian
  • 9,300
  • 8
  • 34
  • 62
Shay
  • 183
  • 2
  • 13
  • 1
    `Application.UseWaitCursor = true;` or `Cursor.Current = Cursors.WaitCursor;` and then `Application.DoEvents();`? – Prix Feb 14 '14 at 11:23
  • 3
    Frankly, if Cursor.Position = Cursor.Position works, I rather prefer this solution than Application.DoEvents() a million times. – Larry Feb 14 '14 at 14:19

0 Answers0