为什么我不断收到此错误:索引超出了数组的范围。请帮忙。谢谢你。
Dim list As New ListBox
Dim dirsize As Integer
Dim a As Integer
Dim container(0) As String
Dim counter As System.Collections.ObjectModel.ReadOnlyCollection(Of String)
counter = My.Computer.FileSystem.GetFiles("C:\myfolder")
dirsize = counter.Count
For a = 0 To dirsize
container(a) = a + 1
lstItems.Items.Add(container(a))
Next