473,385 Members | 1,587 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,385 software developers and data experts.

Wait cursor

Mex
Hi

When i start process i set wait cursor like this
this.Cursor=Cursors.WaitCursor;

On my form i have Cancel button.
Problem is on when i move mouse over this button, cursor is also WaitCursor.
How to make so, that on Cancel button cursor is Default?
Best regards;
Red
Aug 9 '07 #1
4 2710
Mex wrote:
When i start process i set wait cursor like this
this.Cursor=Cursors.WaitCursor;

On my form i have Cancel button.
Problem is on when i move mouse over this button, cursor is also WaitCursor.
How to make so, that on Cancel button cursor is Default?
This is the default behaviour, but you can change the
cursor in the "MouseHover" event of your cancel button.

--
Daniel Strigl [da***********@gmx.takethisout.at, remove 'takethisout.']
Web: http://www.hh-system.com/danielstrigl
Blog: http://geekswithblogs.net/dastblog
Aug 9 '07 #2
Or, you could set the Cursor property on the button to the default
pointer.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel Strigl" <da***********@gmx.takethisout.atwrote in message
news:eY**************@TK2MSFTNGP06.phx.gbl...
Mex wrote:
>When i start process i set wait cursor like this
this.Cursor=Cursors.WaitCursor;

On my form i have Cancel button.
Problem is on when i move mouse over this button, cursor is also
WaitCursor.
How to make so, that on Cancel button cursor is Default?

This is the default behaviour, but you can change the
cursor in the "MouseHover" event of your cancel button.

--
Daniel Strigl [da***********@gmx.takethisout.at, remove 'takethisout.']
Web: http://www.hh-system.com/danielstrigl
Blog: http://geekswithblogs.net/dastblog

Aug 9 '07 #3
In this case, you will probably have to subscribe to the MouseEnter and
MouseLeave events and change the cursor manually to the default (and then
back, when the cursor exits the button).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Redivivus" <me***********@deltmar.eewrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
sry. this is a toolstrip button.

mex

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:Oe*************@TK2MSFTNGP06.phx.gbl...
> Or, you could set the Cursor property on the button to the default
pointer.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel Strigl" <da***********@gmx.takethisout.atwrote in message
news:eY**************@TK2MSFTNGP06.phx.gbl...
>>Mex wrote:

When i start process i set wait cursor like this
this.Cursor=Cursors.WaitCursor;

On my form i have Cancel button.
Problem is on when i move mouse over this button, cursor is also
WaitCursor.
How to make so, that on Cancel button cursor is Default?

This is the default behaviour, but you can change the
cursor in the "MouseHover" event of your cancel button.

--
Daniel Strigl [da***********@gmx.takethisout.at, remove 'takethisout.']
Web: http://www.hh-system.com/danielstrigl
Blog: http://geekswithblogs.net/dastblog



Aug 9 '07 #4
sry. this is a toolstrip button.

mex

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:Oe*************@TK2MSFTNGP06.phx.gbl...
Or, you could set the Cursor property on the button to the default
pointer.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel Strigl" <da***********@gmx.takethisout.atwrote in message
news:eY**************@TK2MSFTNGP06.phx.gbl...
>Mex wrote:
>>When i start process i set wait cursor like this
this.Cursor=Cursors.WaitCursor;

On my form i have Cancel button.
Problem is on when i move mouse over this button, cursor is also
WaitCursor.
How to make so, that on Cancel button cursor is Default?

This is the default behaviour, but you can change the
cursor in the "MouseHover" event of your cancel button.

--
Daniel Strigl [da***********@gmx.takethisout.at, remove 'takethisout.']
Web: http://www.hh-system.com/danielstrigl
Blog: http://geekswithblogs.net/dastblog


Aug 9 '07 #5

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

Similar topics

1
by: Yaron Cohen | last post by:
Hi, I would like to ask for your help (I am using only IE5.5). I have a very big table that I would like to sort. During the sort I would like the cursor changed to 'wait' state and back to...
1
by: Trupti | last post by:
I wanted to create a wait cursor. I tried BeginWaitCursor(), RestoreWaitCursor() CWaitCursor. These function and classe show me wait cursor but when I move my cursor the wait cursor goes away. ...
3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
6
by: SP | last post by:
Hi, I want to add wait cursor code whenever page is post back. Page may be post back on my user control's or on change of dropdown or on click of any button on page. so is there any common...
4
by: PJ6 | last post by:
This is the only solution I've found to get a wait cursor document-wide: function Busy() { if (document.all) for (var i=0;i < document.all.length; i++) document.all(i).style.cursor = 'wait'; }...
2
by: Smokey Grindle | last post by:
I have an MDI app, that has a Modal (non MDI child) form that shows up in it's properties that performs a very long task, I want the wait cursor to show over the entire application... when I do...
2
by: Doug | last post by:
I have a multi frame dhtml applicaiton that sets a wait cursor in each frame when a request is made to the web server. Essentially this: ...
12
by: info | last post by:
Hi All, I am trying to set the hourglass cursor inside a class that has nothing to do with MainForm class and I don't want to pass a reference to MainForm. How can I set the current cursor to...
3
by: Greg Smith | last post by:
I would like to set an hourglass style cursor during long operations like sql data retrieval. I this do-able? Any help is greatly appreciated.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.