A
Aussie Rules
Hi,
i have a list box with a number of items.
I want the user to be able to select a number of items, press the delete
key, and they are delete. The following code does cause an error....
I guess i must be doing it wrong, but can't think how else to go about the
delete (after trapping the delete keydown)
----
Dim indx As clsInspectionTime
For Each indx In lstInspectiontimes.SelectedItems
lstInspectiontimes.Items.Remove(indx)
Next
i have a list box with a number of items.
I want the user to be able to select a number of items, press the delete
key, and they are delete. The following code does cause an error....
I guess i must be doing it wrong, but can't think how else to go about the
delete (after trapping the delete keydown)
----
Dim indx As clsInspectionTime
For Each indx In lstInspectiontimes.SelectedItems
lstInspectiontimes.Items.Remove(indx)
Next