473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Mouse Pointer turns to hour glass

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

In C# and Windows projects, how I can I control the look of the mouse?

Thanks
May 14 '06 #1
2 16284
On Sun, 14 May 2006 09:39:02 -0700, di****@newsgroup.nospam
<di****@newsgroup.nospam.donotspam> wrote:
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 finished.

In C# and Windows projects, how I can I control the look of the mouse?

Thanks


Setting the Current property in the System.Windows.Forms.Cursor class
changes the mouse pointer.

Cursor.Current = Cursors.WaitCursor; // Turn mouse into hourglass
Cursor.Current = Cursors.Default; // Reset to normal
This answer was found by searching the .net framework groups at
groups.google.com, using the following query:

mouse hourglass group:microsoft.public.dotnet.framework.*

The group: syntax is a very nice way to restrict searches to only the
relevant groups.

--
Marcus Andrén
May 14 '06 #2
Marcus Andrén <a@b.c> wrote:
This answer was found by searching the .net framework groups at
groups.google.com, using the following query:

mouse hourglass group:microsoft.public.dotnet.framework.*

The group: syntax is a very nice way to restrict searches to only the
relevant groups.


No, don't tell them how to figure things out - you'll put us out of
work!

-- Barry
May 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Champaign | last post by:
Hi all, I'm working on an educational applet for a child with special needs. He's got a bit of a trick to make my life more difficult... To interact with the applet he needs to click on...
1
by: Jawahar Rajan | last post by:
All, I have a web page that calls a popup calendar . Users can select a date and then the date is populated back in the field in the form. Each date field has its own popup calendar. When the pop...
2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
1
by: sonu | last post by:
I am developing a web application, Where i want to show mouse pointer as hour glass when i click button. actually when i click button its takes some time to populate dtata on page. During this...
1
by: archana | last post by:
Hi all, I am having one confusion regarding changing cursor to wait cursor I am providing auto refreshing facility for listview using timer. So what i am doing is when auto refreshing is in...
1
by: desaiamarjeet | last post by:
I want to change the mouse pointer to hour glass in VB.NET How can i do it?
1
by: buntyindia | last post by:
Hi, Recently I applied a IFRAME SHIM on calendar widget. Now the problem is when ever we click on ICON that provide Calendar widget mouse pointer changed to HOUR GLASS pointer for a half second....
2
by: remya1000 | last post by:
i'm using VB.NET. when a button is clicked the utility will display an hour glass mouse pointer, and it will begin copying the Utility settings from one computer to another computer on the...
2
by: muddasirmunir | last post by:
I want that my mouse pointer will change to hand when we move our mouse to a text and come to arrorw again when we leave. Just like same as we move our mouse over a hyperlink in explorer. any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.