Dim lvw As WinForm.ListView = e.Form.Controls("ListView1")
Dim vls As String = ""
For Each vr As WinForm.ListViewRow In lvw.CheckedRows
vls = vls & vbcrlf & vr("第三列") & vr("第二列") & " " & vr("第四列") & " " & vr("第五列") & vr("第六列")
Next
vls = vls.Trim(",")
If vls > "" Then
For Each vr As WinForm.ListViewRow In lvw.CheckedRows
MessageBox.show("你选择的有:" & vls)
Forms("窗口1").controls("TextBox1").Text = vr("第二列")
Forms("窗口1").controls("TextBox2").Text = vr("第三列")
Forms("窗口1").controls("TextBox3").Text = vr("第五列")
Forms("窗口1").controls("TextBox4").Text = vr("第六列")
For ir As Integer = 1 To vr.count-1
Forms("窗口1").controls("TB1_" & ir+1).Text = vr(ir)("第四列")
Forms("窗口1").controls("TB2_" & ir+1).Text = vr(ir)("第七列")
Next
Next
Else
MessageBox.show("你并没有选择任何项目!" )
End If
发生错误,帮我看看

此主题相关图片如下:wt1.jpg