TEdit text from black to red in Delphi 5

HansB
HansB used Ask the Experts™
on
How do I change the the text property of an TEdit from black to red during runtime ?
Comment
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.

Author

Commented:
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