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

I have a 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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not sure, but you could put it (the hour glass code) in the loop or whatever code you use that you are waiting on.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
johnnyg123Author Commented:
thanks for pointing me in the right direction....

I was executing a for 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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.