-
I'm a new guy so I hope this is helpful.
As to the 2nd question:
I think you want to look at the ListIndex property and use it to control the flow of your application, e.g., assuming a list and a button where the trigger is the button and the list is the modifier, you might have the following:
Code:
Private Sub Command1_Click()
Select Case List1.ListIndex
Case 0
MsgBox "Item 1"
Case 1
MsgBox "Item 2"
Case 2
MsgBox "Item 3"
End Select
End Sub
Private Sub Form_Load()
List1.AddItem "First"
List1.AddItem "Second"
List1.AddItem "Third"
End Sub
Hope it helps.
Regards
NEW2VB
-
Whoops!
Whoops! Sorry, this was intended as a reply to thread 22801.
Apologies.
New2VB