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
 

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