Multithreading & mousepointers

  • Thread starter Thread starter Per Rollvang
  • Start date Start date
P

Per Rollvang

Hi All!

I have been struggling with where what & when to set the mousepointer to an
hourglass when using async. multithreading. Nothing seems to work... : (

Anybody that can help me out with that one?

TIA

Per Rollvang
 
Per,

Basically, you would do it from the UI thread, right before you kick off
the asynchronous operation. Then, you would set the cursor back when the
operation completed, in the notification that is fired on your UI thread.

Hope this helps.
 
Nicholas Paldino said:
Per,

Basically, you would do it from the UI thread, right before you kick
off the asynchronous operation. Then, you would set the cursor back when
the operation completed, in the notification that is fired on your UI
thread.

Hope this helps.

Hi Nicholas,

thanks for the quick reply!

I don't get this to work with 'Cursor.Current', and this.Cursor is not avail
in my thread...

Any other ideas? Am I doing something else that is terribly wrong, I am not
that good with multithreading. Is this supposed to work? 100%?

-Per
 
Cursor.Current is buggy. Use Control.Cursor instead.

Regards,
Frank Hileman

check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
 
Back
Top