Global cursor change

O

ofiras

Hi,
Is there any way to change the cursor to Wait cursor globally (that it
will be wait cursor even if it is out of the form)?
Thanks,
Ofir.
 
O

ofiras

From :

http://msdn.microsoft.com/en-us/library/system.windows.forms.cursors....
inside the Remarks section :

"To make the wait cursor display for the entire application, regardless of
the control or form selected, call UseWaitCursor on the Application class.."

Thanks Patrice, but this is not what I wanted.
I want the cursor to change globally, even if the application is
minimized, or the focus is on another window (which is not part of the
application).
Thanks again,
Ofir.
 
P

Peter Duniho

ofiras said:
[...]
I want the cursor to change globally, even if the application is
minimized, or the focus is on another window (which is not part of the
application).

Don't do that. Windows is a multi-tasking operating system. Your
process is never so important that it needs to override the UI state of
other running tasks.
 
P

Patrice

I want the cursor to change globally, even if the application is
minimized, or the focus is on another window (which is not part of the
application).

It doesn't seems to make sense as having your application being busy does
not make all other applications being busy (or if yes, it could be better to
change the app behavior).

You may want to start by checking the Win32 API
(http://msdn.microsoft.com/en-us/library/ms646970(VS.85).aspx) to see if
this is even possible (changing the system cursor being the worst workaround
I can think of)...
 
J

Jeff Johnson

Is there any way to change the cursor to Wait cursor globally (that it
will be wait cursor even if it is out of the form)?

Yes: install Windows 3.1.

Beyond that, Windows is explicitly designed NOT to let you do that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top