Link to home
Start Free TrialLog in
Avatar of johnnyg123
johnnyg123Flag for United States of America

asked on

Cursor Reset to Default Before System.Windows.Forms.Cursors.Default is executed

I have a vb.net app in which I have set the cursor to a wait currsor in a button click event.  The cursor does seem to change to an hour class but then resets to a default cursor before the System.Windows.Forms.Cursors.Default is executed.

Are there certain operations that cause this?



 
ASKER CERTIFIED SOLUTION
Avatar of CDCOP
CDCOP

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of johnnyg123

ASKER

thanks for pointing me in the right direction....

I was executing a for ...next loop to populate some word form fields.  I guess it reset the cursor to default.  (Not sure why)

I stuck a  Me.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor inside and all is well.

Cursor goes back and forth between normal and wait quite a bit but does the trick