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. Disabled/Read-Only Fields Color

Disabled/Read-Only Fields Color

Scheduled Pinned Locked Moved C#
question
2 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.
  • D Offline
    D Offline
    dubbele onzin
    wrote on last edited by
    #1

    Hi, This is really annoying - I set a field to disabled or read-only and it's set to a grey color with black text which isn't very easy to read at all. I want to display my text in a read-only text box so that it can't be edited but so it can still be read clearly. Even though I try setting the background color different it doesn't work. Can anyone suggest how I might make such fields more readable?

    S 1 Reply Last reply
    0
    • D dubbele onzin

      Hi, This is really annoying - I set a field to disabled or read-only and it's set to a grey color with black text which isn't very easy to read at all. I want to display my text in a read-only text box so that it can't be edited but so it can still be read clearly. Even though I try setting the background color different it doesn't work. Can anyone suggest how I might make such fields more readable?

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

      well don't disable it instead set readonly=true and then set the background color to whatever you want. I normally use LightGrey as background color which looks fine with black text. (I am referring to a web form text box not windows)

      -----

      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