I'm pretty new to VB.net and I'm trying to figure out how to add multiple columns of data to a listview.
After searching several different sources, I think this is the way I should be doing it:
address.Columns.Add("address1", 200, HorizontalAlignment.Left)
address.Columns.Add("address2", 100, HorizontalAlignment.Left)
address.Columns.Add("city", 100, HorizontalAlignment.Left)
Dim AddressData(2) As String
Dim AddressLine As ListViewItem
AddressData(0) = "123 fake st"
AddressData(1) = "unit 1"
AddressData(2) = "fakecity"
AddressLine = New ListViewItem(AddressData)
address.Items.Add(AddressLine)
But for some reason, the list view only shows one column displaying "123 fake st", and it seems to be completely ignoring any changes to column width. What am I doing wrong?