Hourglass or WaitCursor in .netCF

  • Thread starter Thread starter Shane Wilson
  • Start date Start date
Shane- Doesn't "Cursor.Current = Cursors.WaitCursor" clear
with the next Windows Message post? If so, it sure
doesn't last long for me. Anybody figured how to "make it
so" until the _programmer_ decides it's time to revert to
the default?

Thnaks in advance...
 
I think you are mistaken. It lasts until cleared explicitly by setting
Cursor.Current to Cursors.Default
 
Only if you are not calling it from the GUI thread... in my experience
anyway...

Cheers
Daniel
 
I've got this:

Cursor.Current = System.Windows.Forms.Cursors.WaitCursor

coded right after the "MyBase.NEW" in the generated WIn
Forms stuff, hoping to set the hourglass while the init
components runs. I clears so fast I only see a flicker.
Digging back thru the docs I found a joyous tidbit that
sez the cursor gets reset on the next Windows Message.
Since there's a snow storm of messaging going on when a
form loads, I gave up. Now I'm guessing (referring back
to Dan's note) that I'm definitely in the GUI thread. If
I've missed something (and that will NOT be a first), I
will be most grateful for any guidance.

I'd love to get the control of my cursor I had in VB 6.
I'd _really_ love to be able to give my clients a visual
clue when I'm going out to lunch for a few seconds.

TIA, all.
 
Bill Jones, posting the code might help.
I use the wait cursor and i have no issues. I havent seen anyone else who
has this issue on the forums either. Please post some code so we can look at
it.
 
Do you mean that you set the cursor in the form constructor? That won't
work - set it in the Load event
 
Back
Top