Hourglass or WaitCursor in .netCF

B

Bill Jones Jr.

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...
 
A

Alex Feinman [MVP]

I think you are mistaken. It lasts until cleared explicitly by setting
Cursor.Current to Cursors.Default
 
D

Daniel Moth

Only if you are not calling it from the GUI thread... in my experience
anyway...

Cheers
Daniel
 
B

Bill Jones Jr.

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.
 
S

Sai

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.
 
A

Alex Feinman [MVP]

Do you mean that you set the cursor in the form constructor? That won't
work - set it in the Load event
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top