• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1465
  • 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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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