Coffeehouse Post

Single Post Permalink

View Thread: Help needed - Visual Basic .NET
  • User profile image
    henningms

    The thing is:

    An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll

    Additional information: Specified argument was out of the range of valid values.

    When running this code:

    For i = 0 To ListView1.Items.Count
       If ListView1.Items(i).ToString = splNick(0) Then
           ListView1.Items.RemoveAt(i)
        End If
    Next i

    That problem haunts me, whatever I do it's there.