Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
how to change my mouse cursor to show it as busy in c#?

Solved 1 Answers 42 Views Programming
0 1
I am using c#. I need to log into server using WindowsLogin form. Windows login form will make request to the server. I need to show my cursor as busy when user is loggin in. Can you help me with code for the same in c#?

1 Answer

0
Best answer
0

To make your cursor wait use this at the begining of a function.

// Set cursor as hourglass
Cursor.Current = Cursors.WaitCursor;

// Execute your time-intensive hashing code here...

 

To change back cusrsor to default.

// Set cursor as default arrow
Cursor.Current = Cursors.Default;

 

answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...