![]() ![]() ' Add vertical scroll bars to the TextBox control. ' Create an instance of a TextBox control. TextBox1.Text = "Welcome!" + Environment.NewLine + "Second Line" TextBox1.ScrollBars = ScrollBars.Vertical TextBox1->Text = "Welcome!" + Environment::NewLine + "Second Line" Set WordWrap to true to allow text to wrap to the next line. Allow the TAB key to be entered in the TextBox control. Allow the RETURN key in the TextBox control. TextBox1->ScrollBars = ScrollBars::Vertical Add vertical scroll bars to the TextBox control. Create an instance of a TextBox control. This example also uses the AcceptsTab, AcceptsReturn, and WordWrap properties to make the multiline text box control useful for creating text documents. The following code example uses TextBox, a derived class, to create a multiline TextBox control with vertical scroll bars. True if the multiline text box control wraps words false if the text box control automatically scrolls horizontally when the user types past the right edge of the control. ![]() Property bool WordWrap member this.WordWrap : bool with get, set Public Property WordWrap As Boolean Property Value Boolean ![]() Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |