Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i tried google for an answer but i dont know if im searching it the right way , my forms take a while to open(POS system - so it loads alot of sql tables ect ect)so while it loads i want to make the mouse play that "busy" animation like xp had the hourglass where as 7 - 8 have that spinning O , or like a progress bar that plays when clicked on the button to go to the next form , to show the user that its busy and didnt hook . ;) thanks in advance
Posted

1 solution

This might help you:
C#
// Set cursor as hourglass
Cursor.Current = Cursors.WaitCursor;

// Your time-taking code here...

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

C# Windows Form is Busy[^]


-KR
 
Share this answer
 
Comments
Philippe Mori 14-Oct-15 13:06pm    
Or UseWaitCursor on the form.
jamesmc1535 15-Oct-15 8:28am    
thanx :) worked exactly as i wanted to
Krunal Rohit 15-Oct-15 8:29am    
Glad to help. :-)

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900