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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Disable TextBox cursor

Disable TextBox cursor

Scheduled Pinned Locked Moved C#
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
    bankai123
    wrote on last edited by
    #1

    Hi, I'm wondering how I can ensure a cursor(I'm referring to the IBeam cursor) doesn't appear in a textbox. What I want to do is use a textbox to display some message but I dont want any cursors showing up in it. Thanks

    G L 2 Replies Last reply
    0
    • B bankai123

      Hi, I'm wondering how I can ensure a cursor(I'm referring to the IBeam cursor) doesn't appear in a textbox. What I want to do is use a textbox to display some message but I dont want any cursors showing up in it. Thanks

      G Offline
      G Offline
      gauthee
      wrote on last edited by
      #2

      if the requirement is such that the user need not enter any data in the textbox, then make the enable property of the textbox to false.

      Gautham

      1 Reply Last reply
      0
      • B bankai123

        Hi, I'm wondering how I can ensure a cursor(I'm referring to the IBeam cursor) doesn't appear in a textbox. What I want to do is use a textbox to display some message but I dont want any cursors showing up in it. Thanks

        L Offline
        L Offline
        Luis Alonso Ramos
        wrote on last edited by
        #3

        The other reply is on track, but better make the control read only (the ReadOnly property). The user will be able to scroll and the text will appear black (instead of gray), but it will not be editable.

        Luis Alonso Ramos Intelectix Chihuahua, Mexico

        Not much here: My CP Blog!

        B 1 Reply Last reply
        0
        • L Luis Alonso Ramos

          The other reply is on track, but better make the control read only (the ReadOnly property). The user will be able to scroll and the text will appear black (instead of gray), but it will not be editable.

          Luis Alonso Ramos Intelectix Chihuahua, Mexico

          Not much here: My CP Blog!

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

          Setting the textbox enable property to false leave is a faded colour making text hard mopre difficult to read. I've used the Read-Only property however I don't want the user to be able to select the text if that's possible. 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