03-09-2010, 05:44 AM
You can use an array to store the passwords and then find the password for the selected item like this: (password() is the array)
Code:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
msgbox(password(listbox1.selectedindex))
End Sub