Background color when control is disabled

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Ramaley

    Background color when control is disabled

    Setting the ReadOnly property of my controls changes the background
    color. The same happens when I set Enabled = False. Where does .NET
    get the new background color from? Is it configurable?

    thanks
  • Cor Ligthert

    #2
    Re: Background color when control is disabled

    James,

    Strange, never saw this, do you have a piece of your code where that is in?

    Cor

    "James Ramaley"
    ...[color=blue]
    > Setting the ReadOnly property of my controls changes the background
    > color. The same happens when I set Enabled = False. Where does .NET
    > get the new background color from? Is it configurable?
    >
    > thanks[/color]


    Comment

    • Ken Tucker [MVP]

      #3
      Re: Background color when control is disabled

      Hi,

      No you cant change the background color of a control like a
      textbox that is readonly. You would have to make your own textbox to change
      the background color. The systemcolors class contains many of the standard
      colors of a control.

      Ken
      ------------------------
      "James Ramaley" <jramaley@iname .com> wrote in message
      news:f84e229a.0 409232315.1600b a42@posting.goo gle.com...
      Setting the ReadOnly property of my controls changes the background
      color. The same happens when I set Enabled = False. Where does .NET
      get the new background color from? Is it configurable?

      thanks


      Comment

      Working...