On Sep 26, 2006, at 5:51 PM, Brian Heibert wrote:
I am reading the manual and I am on page 194 of the Language Reference
I see RemoveRow but I do not see how to figure out what the number
is for the selected item
If you have the ListBox set to a single row selection, then the
ListIndex property is the currently selected row. NOTE: it can be -1
if no rows are selected so check for that.
If you have a multiple-selection ListBox, then you loop through all
rows like this:
For k As Integer = Listbox1.ListCount - 1 DownTo 0
If Listbox1.Selected(k) Then Listbox1.RemoveRow(k)
Next
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>