BlakeMcKenna
asked on
Enabled/Disabled background colors not being consistent?
I have a couple of instances in which I disable some textboxes. When I do that, the background colors change (as they should). When I enable them, they show the enabled color, which is usually the default color of white. However, when I toggle them back and forth, the enabled color doesn't show again....the background color just stays white. What properties do I need to pay attention to or change.
I will say also that my application has a custom color for when the textbox has focus. This is determined by the user. When the textbox loses focus, the backcolor become white again. I have a feeling I'm just not sure which properties I should be working with.
I've attached a screenshot of what I'm talking about.
Thanks
I will say also that my application has a custom color for when the textbox has focus. This is determined by the user. When the textbox loses focus, the backcolor become white again. I have a feeling I'm just not sure which properties I should be working with.
I've attached a screenshot of what I'm talking about.
Thanks
Can you show the code you are using to manage your custom color?
As long as you are handling the textbox events each time they enter or leave the control, you should only have to change the color and refresh the control. I've often ran into the same issue you're describing and refreshing the control (after making the change) usually fixes the problem.
this is not the normal behavior. your grayed textbox is surely not enabled. can you show your code?
ASKER
I just thought of something....does making a control "ReadOnly" have an affect on the background color? If so, then that would be my issue...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys...that got me thinking! Got it resolved!