473,769 Members | 7,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16304
On Sun, 14 May 2006 09:39:02 -0700, di****@newsgrou p.nospam
<di****@newsgro up.nospam.donot spam> 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.WaitCur sor; // Turn mouse into hourglass
Cursor.Current = Cursors.Default ; // Reset to normal
This answer was found by searching the .net framework groups at
groups.google.c om, 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.c om, 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
6228
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 buttons, which is fine most of the time (he comes from a Mac environment, so I accept mouse clicks from the right or left button when he's working on the PC). But every once in a while, he'll press and hold the right mouse button, move onto a JButton,...
1
1932
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 up closes out and the date is filled in the date field the mouse cursor shape is changed to busy hour glass - Why does this happen? The rest of the operation to the form is not effected but the mouse cursor does look awkward and can put people...
2
4649
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 the original page the mouse cursor is a Hour glass shape! my code: I use DIV tag <DIV id ="printThis"> <%
1
1561
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 i want to show mouse pointer as hour glass Regards Sonu
1
2624
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 progress i am changing cursor to hour glass to indicate user that application is busy in background processing.
1
40604
by: desaiamarjeet | last post by:
I want to change the mouse pointer to hour glass in VB.NET How can i do it?
1
4311
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. How can we handle that It should be hand icon.. Help
2
2736
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 network. Upon completion of these steps, the mouse pointer will return to it’s default style and the program will exit. any one have any idea how to display a Hour Glass Mouse Pointer? and when that settings starts coping to another computer, how can we...
2
21472
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 help ? i had tried on mousemove event of text but did not succeed as the pointer change but did not come back to arrorw again.also i do not know what to write to change to hand pointer instead of hour glass in above code. Thanks
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6674
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
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 we have to send another system
2
3563
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.