0

In trying to teach myself about the properties of the textbox, I'm wondering what the propert "Lines" is all about. The value in the property says "String[]Array". When I click this, a box comes up that asks "Enter the strings in the collections (one per line)". Can someone explain to me what the purpose of this is and how this might be used?

In advance, thanks for the help.

Don

2
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by doncwilson_1
0

By default, the collection of lines is a read-only copy of the lines in the TextBox.

To add text use the AppendText method. It's probably not used much, since the listbox does basically the same thing and more and is much easier to use. Here's the MSDN article on the Lines property with example

Edited by tinstaafl

0

tinstaafl, thanks. I'm familiar with the listbox. You're info clears this up.

Thanks again.

Don

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.