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
Kevin Spencer - 06 Nov 2006 22:57 GMT
See
http://msdn2.microsoft.com/en-us/library/system.windows.forms.cursors(VS.80).aspx

Signature
HTH,
Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com
I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
> Hi all,
>
[quoted text clipped - 10 lines]
> Any help would be great, thanks
> Gav
Herfried K. Wagner [MVP] - 06 Nov 2006 23:01 GMT
"Gav" <spam@spam.com> schrieb:
> 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.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>