473,490 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 16978
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2166
by: Tee | last post by:
Hi, From my main form, I am executing another application using System.Diagnostics.Process.Start. The application has its own window displaying when the applicaiton is run. I want to change...
2
10067
by: KarenP | last post by:
In my Windows Forms application, while executing a process that takes some time, I am changing the cursor to the hourglass by setting Cursor.Current = Cursors.WaitCursor. This is working just...
3
1537
by: larry mckay | last post by:
does anyone have a code sample that changes the mouse cursor to an hourglass or waitcursor ? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in...
9
4846
by: DotNetShadow | last post by:
Hi Guys, I have been having this problem recently where I have a form with a textbox and button, if in the button event I have the following: Private Sub Button1_Click(ByVal sender As...
1
4148
by: Stefan Mueller | last post by:
With the following code I can change the mouse pointer. However, if you click in Mozilla (with IE it works perfect) on 'Show hourglass' the mouse pointer changes only if you move the mouse at least...
2
16290
by: diatom | last post by:
Hello, I have a custom dialog. When the user hits the 'Ok' button, I want my mouse to turn into an hourglass while its performing work - and then I want it to go back to normal afer the work is...
5
3139
by: mcraven.2 | last post by:
I know this works on all objects except drop down boxes. doc = document.all for (i=0;i<doc.length;i++) { doc(i).style.cursor = 'wait'; } Is it possible to make a cursor into an hourglass...
6
13898
by: Jan Heppen | last post by:
Is it posible to set something so that when my vb.net (visual studio 2005, framework 2.0) application is busy that the mouse pointer change into a hourglass ? Or do i have to set everywhere...
3
14902
by: alanpike | last post by:
When a vbscript runs, is it possible to change the cursor to an hourglass until the script has completed running? Please reference the following simple script: (change cursor to hourglass here)...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6852
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.