Hi, this question is worth 250 points and they will be awarded to the individual that provides the best solution to my question.
I have different text boxes on different Forms, as most people do. At certain instances throughout the application, I enable and disable some of those text boxes, so that information cannot be changed and so that it is obvious that input is not an option. All that works fine.
My problem is that whenever I disable a text box, the background color of the text box changes from white (which is my default color) to the control color, usually grey. The text font color also becomes dimmed out to a dim grey. This making the information inside the text box difficult to read.
My question is: Is there a way to select the background color of the text box when it is in "Enabled = False" mode?
My code is very simple:
Textbox1.Enabled = False ' This disables the text box
Textbox1.Enabled = True ' This enables the text box -- this part works fine
I would like to select (even if its pragmatically) a much lighter shade of grey or maybe a dim white. Is there a place within the Windows generated code that defines the color, which I may be able to change?