Skip to content

Instantly share code, notes, and snippets.

@NPS-ARCN-CAKN
Last active April 5, 2018 19:58
Show Gist options
  • Save NPS-ARCN-CAKN/180e4334bbd193afc3acc9a7ac8bfbc7 to your computer and use it in GitHub Desktop.
Save NPS-ARCN-CAKN/180e4334bbd193afc3acc9a7ac8bfbc7 to your computer and use it in GitHub Desktop.
VB .NET: Add items to a multi-column ListViewItem
'Me.ItemsListView has two columns, one for the file name and one for the full file path
Dim FileAttributes(2) As String
FileAttributes(0) = FileInfo.Name
FileAttributes(1) = FileInfo.FullName
Dim ListViewItem As New ListViewItem(FileAttributes)
Me.ItemsListView.Items.Add(ListViewItem)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment