Wait cursor

  • Thread starter Thread starter Mex
  • Start date Start date
M

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
 
Mex said:
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.
 
Or, you could set the Cursor property on the button to the default
pointer.
 
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]
- (e-mail address removed)

Redivivus said:
sry. this is a toolstrip button.

mex



Nicholas Paldino said:
Or, you could set the Cursor property on the button to the default
pointer.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Daniel Strigl said:
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.
 

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

Back
Top