【VB开源代码栏目提醒】:网学会员为广大网友收集整理了,8.3.1.frm,希望对大家有所帮助!
VERSION 5.00
Begin VB.Form Form3
Caption = "Form3"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form3"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "显示"
Height = 495
Left = 2880
TabIndex = 1
Top = 2520
Width = 975
End
Begin VB.ListBox List1
Height = 2040
ItemData = "8.3.1.frx":0000
Left = 2640
List = "8.3.1.frx":0010
TabIndex = 0
Top = 240
Width = 1335
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Integer
For i = 0 To List1.ListCount - 1
'搜索所有数据项
If List1.Selected(i) = True Then
'获取选中的数据项索引
List1.ListIndex = i
Print List1.Text
End If
Next
End Sub