S
Steve Le Monnier
When you make a textbox control disabled ( txtText1.Enabled = false; )
You're left with grey text on a greyer background, which is not ideal. The
Read-Only property is no use to me as I need to prevent complete access, so
i've been trying to change the visual display of a control once I have
disabled it and discovered the following.
You can change the back color of a disabled control. (txtText1.BackColor =
System.Drawing.SystemColors.Window
which improves readability, but I can't
change the forecolor of the control!
Does anybody know why and more importantly how can I change this behaviour
to prevent disabled controls being grey on greyer.
Many thanks
Steve Le Monnier
You're left with grey text on a greyer background, which is not ideal. The
Read-Only property is no use to me as I need to prevent complete access, so
i've been trying to change the visual display of a control once I have
disabled it and discovered the following.
You can change the back color of a disabled control. (txtText1.BackColor =
System.Drawing.SystemColors.Window

change the forecolor of the control!
Does anybody know why and more importantly how can I change this behaviour
to prevent disabled controls being grey on greyer.
Many thanks
Steve Le Monnier