[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

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?



 
0
johnnyg123
Asked:
johnnyg123
1 Solution
 
CDCOPCommented:
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.
0
 
johnnyg123Author Commented:
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


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now