Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Changing Mouse Cursor

Changing Mouse Cursor

Scheduled Pinned Locked Moved C#
9 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    synunn
    wrote on last edited by
    #1

    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 Si

    S 1 Reply Last reply
    0
    • S synunn

      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 Si

      S Offline
      S Offline
      synunn
      wrote on last edited by
      #2

      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.:^)

      G 1 Reply Last reply
      0
      • S synunn

        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.:^)

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        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; }

        S 1 Reply Last reply
        0
        • G Guffa

          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; }

          S Offline
          S Offline
          synunn
          wrote on last edited by
          #4

          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

          G 1 Reply Last reply
          0
          • S synunn

            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

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            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; }

            S 1 Reply Last reply
            0
            • G Guffa

              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; }

              S Offline
              S Offline
              synunn
              wrote on last edited by
              #6

              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.

              G 1 Reply Last reply
              0
              • S synunn

                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.

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                Can't you use the animation as an icon in the system tray? --- b { font-weight: normal; }

                S 2 Replies Last reply
                0
                • G Guffa

                  Can't you use the animation as an icon in the system tray? --- b { font-weight: normal; }

                  S Offline
                  S Offline
                  synunn
                  wrote on last edited by
                  #8

                  Yeah, i've settled for SysTray but i'm having this problem now

                  1 Reply Last reply
                  0
                  • G Guffa

                    Can't you use the animation as an icon in the system tray? --- b { font-weight: normal; }

                    S Offline
                    S Offline
                    synunn
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups