UseWaitCursor confusion

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

VB.Net 2005 pro

I am using UseWaitCursor like this:

Me.UseWaitCursor = True
Application.DoEvents()

'do some long operation

Me.UseWaitCursor = False

When I run the operation, I can see the cursor change for just an instant
and then back to normal defaultCursor.

When I interrupt the process with a message box like below, the cursor
converts correctly to the WaitCursor and stays that way for the entire time.

Me.UseWaitCursor = True
MessageBox.Show("press OK to continue")
Application.DoEvents()

'do some long operation

Me.UseWaitCursor = False

How do I get this working properly?

Rick
 
Back
Top