472,093 Members | 2,514 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

How may I change the Mouse Cursor ? (Hourglass)

Hi All,

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

How may I do it ?

Thx

Nov 20 '05 #1
8 16828
"Eddie" <ma*************@videotron.ca> schrieb
Hi All,

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

How may I do it ?


See System.Windows.Forms.Cursor.Current and
System.Windows.Forms.Control.Cursor
--
Armin

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

Nov 20 '05 #2
me.cursors = cursors.waitcursor

"Eddie" <ma*************@videotron.ca> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi All,

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

How may I do it ?

Thx

Nov 20 '05 #3
sorry...
me.cursor = cursors.waitcursor
"Morgan" <ab**@senditon.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
me.cursors = cursors.waitcursor

"Eddie" <ma*************@videotron.ca> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi All,

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

How may I do it ?

Thx


Nov 20 '05 #4
Hi,

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

Ken
--------------

"Eddie" <ma*************@videotron.ca> wrote in message
news:#V**************@tk2msftngp13.phx.gbl:
Hi All,

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

How may I do it ?

Thx


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #5
* "Eddie" <ma*************@videotron.ca> scripsit:
I just want to change the mouse cursor during a process. I want a
hourglass...


\\\
Cursor.Current = Cursors.WaitCursor
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2j************@uni-berlin.de...
* "Eddie" <ma*************@videotron.ca> scripsit:
I just want to change the mouse cursor during a process. I want a
hourglass...


\\\
Cursor.Current = Cursors.WaitCursor
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7
Hi Eddie,

Controlname.cursor = cursors.WaitCursor

I hope this helps?

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

How may I do it ?

Nov 20 '05 #8
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> schrieb
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

Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by KarenP | last post: by
3 posts views Thread by larry mckay | last post: by
9 posts views Thread by DotNetShadow | last post: by
2 posts views Thread by diatom | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.