Hi there,
I am having problem trying to retrieve the data from ListView the 2nd time round. It works the first time I clicked on the Line Item and when I clicked on another line item it gave me this error message :-
"Specific argument ws out of the range of valid values. Parameter name : Index
Here are the sample scipts:-
Private Sub ListClient_SelectedIndexChanged( _
ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListClient.SelectedIndexChanged
Dim intIndex As Integer
Try
With ListClient
intIndex = .SelectedIndices(0)
lngPClientId = .Items(intIndex).Text
Me.lblClientId.Text = lngPClientId
txtClientName.Text = .Items(intIndex).SubItems(1).Text
txtAcctMgr.Text = .Items(intIndex).SubItems(2).Text
intIndex = 0
End With
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Please help me. Thanks
Have a Good Day,
Cheers,
Lennie