UseWaitCursor confusion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rick

    #1

    UseWaitCursor confusion

    VB.Net 2005 pro

    I am using UseWaitCursor like this:

    Me.UseWaitCurso r = True
    Application.DoE vents()

    'do some long operation

    Me.UseWaitCurso r = 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.UseWaitCurso r = True
    MessageBox.Show ("press OK to continue")
    Application.DoE vents()

    'do some long operation

    Me.UseWaitCurso r = False

    How do I get this working properly?

    Rick



Working...