TEdit text from black to red in Delphi 5

HansB used Ask the Experts™
How do I change the the text property of an TEdit from black to red during runtime ?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The key here is to look at the Font property, and it has a Color field. So, if your TEdit control is called 'Username', then:

Username.Font.Color := clRed;

Would make the change.

Username.Color := clRed;

Would change the background colour.


Thank You !

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial