How to set the foreground color of the TextBox in C#?

In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In TextBox, you are allowed to set the foreground color of the TextBox with the help of ForeColor property which makes your textbox more attractive. In Windows form, you can set this property in two different ways:

1. Design-Time: It is the simplest way to set the ForeColor property of the TextBox as shown in the following steps:

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.