Font Color of disabled text

I want to change the color of the font of a disabled text item from default gray to black.

I tired to set the font color
Text1.Enable=False
Text1.ForeColor=&Hfff&

Does n't work?

Any Suggestion
ks1973Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
DalinConnect With a Mentor Commented:
You can't change the color of diabled text box.
However, you have two ways to get around.

1. Put a frame, set the borderStyle to none, and backcolor to the same as the form,  put your textbox inside the frame, enable/disable the frame instead of the textbox.

or
2, Lock/unlock the textbox instead of enable/disable it.
0
 
EDDYKTCommented:
I don't think that will work. Use label instead
0
 
ks1973Author Commented:
This alternate way works.
I am just locking the Text item  instead of adding an additional frame in the form.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.