I have a form with text boxes on it.
for the text box if text.enabled = flase then the value in the text box
turns to very light gray (sometimes not readable) Hence Can this color be changed ??
Printable View
I have a form with text boxes on it.
for the text box if text.enabled = flase then the value in the text box
turns to very light gray (sometimes not readable) Hence Can this color be changed ??
Not if you disable it, no. That is the standard DISABLED look of all VB controls.Quote:
Originally Posted by Micky
If you want to "fake" the disabled feature, then you can set its .Locked property to True. Prior to doing that you can set the forecolor to whatever you want, and then when/if you unlock it, set the forecolor back to vbBlack.
Not sure if you can mess with the colours when disabling controls.
However, you might be able to get the effect you want by using
<edit>VB Code:
Text1.Locked = True Text1.BackColor = vbScrollBars
D'oh. You win this time Hack :)
</edit>
if you are having so nobody can type into it consider a label, you could make it look like a textbox or you could put it in a container, something like a frame and disable the frame.
casey.