Private Sub Form_Load()
For i = 1 To 10
List1.AddItem (i)
Next i
End Sub
Private Sub List1_Click()
Text1.Text = List1.List(List1.ListIndex) '怎么样把list一行一行内容循环到text,比如循环1,然后到2,然后到3,如此类推,怎么搞,谢谢各位大侠
End Sub
你既然已经知道怎么把数据从list1中一行行取出来,就可以想把他们怎么显示到text1中就怎么显示的,用循环一次性解决可以,用按钮按一下取一个也可以
Private Sub List1_Click() Dim i As Integer For i = 0 To List1.ListCount - 1 Text1 = List1.List(i) 字典破解调用 if 破解成功 then msgbox "密码是" & text1 exit sub endif Next
End Sub
这应该是要加个Command按钮来执行吧
Private Sub Command1_Click() For i = 0 to List1.ListCount-1 Text1.Text = List1.List(List1.ListIndex) If 密码正确 ...... Exit for endif Next i