How may I change the Mouse Cursor ? (Hourglass)

  • Thread starter Thread starter Eddie
  • Start date Start date
E

Eddie

Hi All,

I just want to change the mouse cursor during a process. I want a
hourglass...

How may I do it ?

Thx
 
Hi,

Me.Cursor = Cursors.WaitCursor ' hourglass
Me.Cursor = Cursors.Default ' default

Ken
--------------
 
Not sure where I read about this (MSDN magazine article?), but it explicity
said NOT to use Cursor.Current = Cursors.WaitCursor, but to instead use
Me.Cursor = Cursors.WaitCursor. I was having all kinds of problems with the
mouse not changing correctly until I switched to using Me.Cursor.

I will try and find the link to back this up. :)

Greg
 
Greg Burns said:
Not sure where I read about this (MSDN magazine article?), but it
explicity said NOT to use Cursor.Current = Cursors.WaitCursor, but to
instead use Me.Cursor = Cursors.WaitCursor. I was having all kinds
of problems with the mouse not changing correctly until I switched to
using Me.Cursor.

I will try and find the link to back this up. :)

If the UI is not idle (and does not use doevents), one should use
cursor.current because it affects the whole application. Otherwise you'd
have to set the cursor for each single control (including forms).


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top