Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1463
  • Last Modified:

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
0
ks1973
Asked:
ks1973
1 Solution
 
EDDYKTCommented:
I don't think that will work. Use label instead
0
 
DalinCommented:
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
 
ks1973Author Commented:
This alternate way works.
I am just locking the Text item  instead of adding an additional frame in the form.

Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now