Cursors

G

Gav

Hi all,

I have a windows form that creates a background thread to do a long task and
'invokes' back to the form to update the UI (progress bar etc). I would like
to show the 'busy' (Default arrow and waitcursor) cursor as long as my
background thread is still running. Can anyone help me acheive this?

I know it's 2 different problems in one because a) I cannot find the cursor
I want and b) after the function ends that starts the background thread the
application changes back to the default cursor.

Any help would be great, thanks
Gav
 
H

Herfried K. Wagner [MVP]

Gav said:
I have a windows form that creates a background thread to do a long task
and 'invokes' back to the form to update the UI (progress bar etc). I
would like to show the 'busy' (Default arrow and waitcursor) cursor as
long as my background thread is still running. Can anyone help me acheive
this?

Check out the form's 'UseWaitCursor' property.
 

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

Top