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. How to get system-wide cursor status in c#?

How to get system-wide cursor status in c#?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 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.
  • C Offline
    C Offline
    CyberKewl
    wrote on last edited by
    #1

    Is it possible to obtain a system-wide cursor status? I've tried using Cursor.current.tostring() but it only returns the status of the cursor within the application running. This means that if the cursor status is updated OUTSIDE of the application, the status is not updated at all.

    J 1 Reply Last reply
    0
    • C CyberKewl

      Is it possible to obtain a system-wide cursor status? I've tried using Cursor.current.tostring() but it only returns the status of the cursor within the application running. This means that if the cursor status is updated OUTSIDE of the application, the status is not updated at all.

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      That's how things are. I found this out a while back while using GetCursor() in Win32. ;) There might be an easy way around this, but I don't know of one.

      "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
      "You must be the change you wish to see in the world." - Mahatma Gandhi

      C 1 Reply Last reply
      0
      • J J Dunlap

        That's how things are. I found this out a while back while using GetCursor() in Win32. ;) There might be an easy way around this, but I don't know of one.

        "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
        "You must be the change you wish to see in the world." - Mahatma Gandhi

        C Offline
        C Offline
        CyberKewl
        wrote on last edited by
        #3

        After some extensive digging, i found out that to get the cursor "image" or icon, we need to use GetCursorInfo() but i don't know how to write the codes (particularly the dllimport part) and get it working in C#. Does anyone have any ideas?

        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