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. the blinking cursor

the blinking cursor

Scheduled Pinned Locked Moved C#
question
7 Posts 4 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.
  • M Offline
    M Offline
    melanieab
    wrote on last edited by
    #1

    Hi, Is there any way to hide the blinking cursor? Thanks! Mel

    K D D 3 Replies Last reply
    0
    • M melanieab

      Hi, Is there any way to hide the blinking cursor? Thanks! Mel

      K Offline
      K Offline
      Koushik Biswas
      wrote on last edited by
      #2

      Cursor.Hide() (See this[^]) If you are wnating to do this inside a textbox say (or any control), you can set its Cursor property in Winforms to "None". Koushik Biswas -- modified at 18:38 Friday 13th January, 2006

      D 1 Reply Last reply
      0
      • K Koushik Biswas

        Cursor.Hide() (See this[^]) If you are wnating to do this inside a textbox say (or any control), you can set its Cursor property in Winforms to "None". Koushik Biswas -- modified at 18:38 Friday 13th January, 2006

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Ummmm...no, that hides the mouse pointer, not the blinking insertion point, what he called the "cursor". RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        • M melanieab

          Hi, Is there any way to hide the blinking cursor? Thanks! Mel

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          IIRC, no there isn't. The insertion point can't be hidden on a control that can receive keystrokes. I could be wrong though... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          • M melanieab

            Hi, Is there any way to hide the blinking cursor? Thanks! Mel

            D Offline
            D Offline
            DigitalKing
            wrote on last edited by
            #5

            [DllImport("user32.dll")] static extern bool HideCaret(IntPtr hWnd); Hides the caret temporarily. Remember to include: using System.Runtime.InteropServices; Example: HideCaret(richTextBox1.Handle); Hope this helps

            D M 2 Replies Last reply
            0
            • D DigitalKing

              [DllImport("user32.dll")] static extern bool HideCaret(IntPtr hWnd); Hides the caret temporarily. Remember to include: using System.Runtime.InteropServices; Example: HideCaret(richTextBox1.Handle); Hope this helps

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Ahhh! I thought there might be something I was forgetting! RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              • D DigitalKing

                [DllImport("user32.dll")] static extern bool HideCaret(IntPtr hWnd); Hides the caret temporarily. Remember to include: using System.Runtime.InteropServices; Example: HideCaret(richTextBox1.Handle); Hope this helps

                M Offline
                M Offline
                melanieab
                wrote on last edited by
                #7

                Thanks!

                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