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. Font on Disabled Controls

Font on Disabled Controls

Scheduled Pinned Locked Moved C#
helptutorial
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.
  • S Offline
    S Offline
    smarttom99
    wrote on last edited by
    #1

    I have a form where I don't want the user to edit any of the fields in the form - readonly. I set the panel.enabled to false. The fields are hard to read as they are light grey. Does anyone know how to change the .enabled font or a better way at doing this. Thanks for everyones help.

    D 1 Reply Last reply
    0
    • S smarttom99

      I have a form where I don't want the user to edit any of the fields in the form - readonly. I set the panel.enabled to false. The fields are hard to read as they are light grey. Does anyone know how to change the .enabled font or a better way at doing this. Thanks for everyones help.

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      the controls on the panel are are disabled because their value is set by their container. You might be able to override the graying of the text, by reseting the forecolor of hte controls to black after the panel is disabled. This is just a guess though, not something I've tested.

      -- Rules of thumb should not be taken for the whole hand.

      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