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
 

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