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

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

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

Thanks again.

Don

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.