Changing Mouse Cursor
-
-
Hi :)
Form frm = new Form() frm.Cursor = new Cursor(_filename_);
Works fine if you have a form and the mouse cursor is over the form. I would like to get at the default mouse cursor so that I can change the pointer even if there is no form. Cheers SiI'll explain further as nobody has replied :( I'm writing a server app' that is started from a scheduled task, it requires no gui as the config file contains everything it needs to start and another app feeds it with data. I'd like something to show the application is running on the server so that people don't think the computer needs rebooting due to laggyness (if there is such a word). I have made an animated cursor that could be used to show this application is running. The only method of showing it I know of requires the application to have a form and the mouse cursor to be within its area. Please help if you can.:^)
-
I'll explain further as nobody has replied :( I'm writing a server app' that is started from a scheduled task, it requires no gui as the config file contains everything it needs to start and another app feeds it with data. I'd like something to show the application is running on the server so that people don't think the computer needs rebooting due to laggyness (if there is such a word). I have made an animated cursor that could be used to show this application is running. The only method of showing it I know of requires the application to have a form and the mouse cursor to be within its area. Please help if you can.:^)
That might prove a bit trickier than anticipated. There might be no users logged in when the application starts, or there may be several. You would also have to monitor the users so that anyone logging in after the application started gets the custom cursor. I suggest that you instead write a small monitor application that shows when the server application is running. You can put it as an icon in the system tray. --- b { font-weight: normal; }
-
That might prove a bit trickier than anticipated. There might be no users logged in when the application starts, or there may be several. You would also have to monitor the users so that anyone logging in after the application started gets the custom cursor. I suggest that you instead write a small monitor application that shows when the server application is running. You can put it as an icon in the system tray. --- b { font-weight: normal; }
-
Good point, if I hooked the user32.dll it'd be current user presumably. I had considered systray but thought it could be easily overlooked. I suppose I could use alternating bright colours to draw the eye... cheers
What is it that you are trying to accomplish, really? Who is going to monitor the appplication, and why? If you change the default cursor, that could easily be overlooked too. The pointer could be at the edge of the screen. The pointer can be set to be hidden while typing. --- b { font-weight: normal; }
-
What is it that you are trying to accomplish, really? Who is going to monitor the appplication, and why? If you change the default cursor, that could easily be overlooked too. The pointer could be at the edge of the screen. The pointer can be set to be hidden while typing. --- b { font-weight: normal; }
-
Good question, in actuallity I'm probably more determined to change the cursor in this manner because I'm quite pleased with the animation I've created.
-
Yeah, i've settled for SysTray but i'm having this problem now http://www.codeproject.com/script/comments/forums.asp?msg=1561813&forumid=1649&XtraIDs=1649&searchkw=synunn&sd=4%2F6%2F2006&ed=7%2F5%2F2006#xx1561813xx