If you set the TextMode property of a Web server text box to MultiLine, you can create a multiline text box. You can size the multiline text box at design time by stretching it into place, or with the Rows and Columns properties.
Multiline text boxes are really HTML text areas; you can see one in the Textboxes example you see in Figure 15.8. Here's the HTML text area created in the Textboxes example:
<textarea name="TextBox2" id="TextBox2" style="height:74px;width:157px;Z-INDEX: 103; LEFT: 233px; POSITION: absolute; TOP: 117px"></textarea>
Even though you handle the text in HTML text areas differently from HTML text fields (which is how single-line text boxes are supported in Web forms), VB .NET hides that detail; you can just use the Text property of a multiline text box to work with its text, just as you can with a single-line text box. Here's how that works in the Textboxes example on the CD-ROM, where TextBox2 is a multiline text box:
Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = "You clicked the button." TextBox2.Text = "You clicked the button." ⋮ End Sub