Private Sub CHKDUP_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CHKDUP.Click
Dim i As Long
Dim j As Long
With GlinkList
For i = 0 To GlinkList.Items.Count - 1
For j = GlinkList.Items.Count To (i + 1) Step -1
If GlinkList.Items(j) = GlinkList.Items(i) Then
GlinkList.Items.Remove(j)
End If
Next
Next
End With
End Sub
当我按下按钮时,它给我“您的应用程序中发生了未处理的异常,InvalidArgument='975<-Listbox I tems' 的值对'index'无效。参数名称:索引