Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Changing Mouse Icon in runtime
Here's an easy one that is giving me some trouble.
I want to click a command button to load a new form. The new form has a longer than usual load time (roughly 5 seconds). Instead of having my users click the command button to load the next form, and sit there wondering for 5 seconds if they actually hit the command button or not, I want to change the mouse icon to the common hourglass icon common to all Win machines. Then, when the form finally loads, I want to change the mouse icon back to the common arrow pointer.
Could someone supply me with a code snippet on how to make this happen. I am assuming it is fairly easy. A URL to a page that has a tutorial on the topic would also be welcomed. The only articles I have found so far are on using custom icons. I tried to convert those articles to my own needs, but I am probably doing something wrong. Could anyone help? Thanks!