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. Visual Basic
  4. Change text color when control is disabled vb.net

Change text color when control is disabled vb.net

Scheduled Pinned Locked Moved Visual Basic
questioncsharpcom
5 Posts 5 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.
  • K Offline
    K Offline
    Khatri Mitesh
    wrote on last edited by
    #1

    Hi to All I want to change the textbox text color When textbox properties enable = False the font in the textbox become gray color. How do I change the gray color to black color ? Thanx Khatri Mitesh

    ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

    K C N 3 Replies Last reply
    0
    • K Khatri Mitesh

      Hi to All I want to change the textbox text color When textbox properties enable = False the font in the textbox become gray color. How do I change the gray color to black color ? Thanx Khatri Mitesh

      ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

      K Offline
      K Offline
      Khanna Gaurav
      wrote on last edited by
      #2

      It's not possible to change forecolor when it is disabled. You can use ReadOnly property instead.

      1 Reply Last reply
      0
      • K Khatri Mitesh

        Hi to All I want to change the textbox text color When textbox properties enable = False the font in the textbox become gray color. How do I change the gray color to black color ? Thanx Khatri Mitesh

        ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Simple - you need to create an owner drawn control ( OK, it's not simple ).

        Christian Graus Driven to the arms of OSX by Vista.

        J 1 Reply Last reply
        0
        • K Khatri Mitesh

          Hi to All I want to change the textbox text color When textbox properties enable = False the font in the textbox become gray color. How do I change the gray color to black color ? Thanx Khatri Mitesh

          ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

          N Offline
          N Offline
          Nanda_MR
          wrote on last edited by
          #4

          You can do one more thing use if condition when the u done disable operation don't do the disable show as disable.

          1 Reply Last reply
          0
          • C Christian Graus

            Simple - you need to create an owner drawn control ( OK, it's not simple ).

            Christian Graus Driven to the arms of OSX by Vista.

            J Offline
            J Offline
            Jon_Boy
            wrote on last edited by
            #5

            Agreed....and it really isn't that bad to do.

            Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

            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