passing all the items of listbox in the richtextbox
问题 how can I pass the items of listbox to richtextbox?. I have multiple items and I want it to display in the richtextbox. this items is like a receipt. it display the items along with its amount. 回答1: This is just a way to do it, using LINQ : Dim Items As String() = From s As String In ListBox1.Items RichTextBox1.Text = String.Join(Environment.NewLine, Items) 回答2: One of the problems doing this with a listbox, is that listboxes store the items as objects and uses the ToString method of each