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. Setting the System Cursor

Setting the System Cursor

Scheduled Pinned Locked Moved C#
questioncsharptutorial
4 Posts 3 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.
  • B Offline
    B Offline
    betterc
    wrote on last edited by
    #1

    I know how to set the cursor while in a 'form' but I want to change the system cursor just before I launch a thread and then change it back to the Arrow when the threaded process completes. How do I change the system cursor in C#? cb

    H T 2 Replies Last reply
    0
    • B betterc

      I know how to set the cursor while in a 'form' but I want to change the system cursor just before I launch a thread and then change it back to the Arrow when the threaded process completes. How do I change the system cursor in C#? cb

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      The cursor should not be set for the entire desktop by an application. It's recommended that you set Cursor.Current, which applies to the entire application (Control.Cursor applies only to that window (a control is a window)). There is no reason to set the cursor for the entire desktop, neither. This violates the standard of per-application cursors.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      • B betterc

        I know how to set the cursor while in a 'form' but I want to change the system cursor just before I launch a thread and then change it back to the Arrow when the threaded process completes. How do I change the system cursor in C#? cb

        T Offline
        T Offline
        Tom Larsen
        wrote on last edited by
        #3

        Changing the "system" cursor is unnecessary for a standard application. You should only be concerned about setting UI cues in your application and only your application unless you have very special reasons. Cursor.Current should be more than enough control of the cursor over your application. Set it whatever you want as part of the thread starting set it back to whatever it was before when it is done.

        B 1 Reply Last reply
        0
        • T Tom Larsen

          Changing the "system" cursor is unnecessary for a standard application. You should only be concerned about setting UI cues in your application and only your application unless you have very special reasons. Cursor.Current should be more than enough control of the cursor over your application. Set it whatever you want as part of the thread starting set it back to whatever it was before when it is done.

          B Offline
          B Offline
          betterc
          wrote on last edited by
          #4

          Thanks, it works like a charm. cb

          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