Visual basic how to remove selected items listview control.
Posted on 2004-04-20
I have this code for a vb6 listview control, how would I add a button to remove the user selected item. I have tried the usual selected items but it doesn't seem to work. Working code if possible.
Private Sub Command2_Click()
Set itmx = SetAlertsViewer.ListItems.Add(, , "")
itmx.SubItems(1) = RuleBox.Text
itmx.SubItems(2) = OperandBox.Text