Hi,
I have created a listbox called "dtlist1" on my VB.NET form. I call a
procedure as follows:
Private Sub openfile(flname As String)
dtlist1.Items.C lear()
etc..
End Sub
and I get the error message: "Exception System.IndexOut OfRangeExceptio n
was thrown in debugee: Index was outside the bounds of the array."
Why is this?
I even try adding:
dtlist1.Items.A dd("this is the first line of the listbox")
before the .Items.Clear() and it doesn't help! I then get the same
error message on the .Items.Add line.
Can anyone suggest?
Thanks,
Alex
I have created a listbox called "dtlist1" on my VB.NET form. I call a
procedure as follows:
Private Sub openfile(flname As String)
dtlist1.Items.C lear()
etc..
End Sub
and I get the error message: "Exception System.IndexOut OfRangeExceptio n
was thrown in debugee: Index was outside the bounds of the array."
Why is this?
I even try adding:
dtlist1.Items.A dd("this is the first line of the listbox")
before the .Items.Clear() and it doesn't help! I then get the same
error message on the .Items.Add line.
Can anyone suggest?
Thanks,
Alex
Comment