Wait cursor....

L

Lloyd Dupont

during lengthy opertaion I popup a wait cursor with this simple line of
code:
Cursor.Current =Cursors.WaitCursor;

it looks like the wait cursor popup after a small latency.
but what puzzle me is that this latency seems not to be always the same.
do you know what impact this latency ?

also in the wait cursor there is like a moving color cursor. sometimes it
stop moving, apparently depending on how busy my app is, but the relation is
not very clear.
could anyone could gives me some hint on its behavior ?
 
C

chris-s

After setting the cursor you could try adding a call to
'Application.DoEvents'.

GUI event/updatess are generally given a lower process priority so this is
most likely the reason for the delay and pauses.

Chris
 

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