Access the Text Box by the Name

Access the Text Box by the Name

The following sample code first creates a text box and assigns it some text and name. Then in the next lines, we access the same text box by its name and print its text.

Console Output

Here is the console output of the above sample code.

 This is MyTextBox