I am trying to get all the data from a combo-box in vb. Lets say the values are john, sarah, bob. I want to be able to write those to a text file like this:
John
Sarah
Bob
They were added using
combobox.add.item(sarah)
Is there anyway I can do somthing like this?
names = combobox.list.items
In c# it would be something like this
Here’s the same snippet (auto)translated to vb.net
Or you can do a simple loop through all the items and use a stringbuilder and concatenate each item.