Стиль ListBox - CheckBox
- Код: Выделить всё
Option Explicit
Private Sub Form_Load()
Me.List1.AddItem "1111111111111"
Me.List1.AddItem "22222222222"
Me.List1.AddItem "3333333333333"
Me.List1.AddItem "444444444444"
Me.List1.AddItem "555555555555"
End Sub
Private Sub Command1_Click()
Dim i As Long
For i = 0 To List1.ListCount - 1
If List1.Selected(i) = True Then
List1.RemoveItem (i)
End If
Next i
End Sub